From 119615d96edcf18b458a7f998c10fa6fec2a78cb Mon Sep 17 00:00:00 2001 From: daviddalbusco Date: Fri, 21 Dec 2018 19:25:36 +0100 Subject: [PATCH] feat: add support for bar chart --- .../deckdeckgo-slide-chart.tsx | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/components/slides/deckdeckgo-slide-chart/deckdeckgo-slide-chart.tsx b/src/components/slides/deckdeckgo-slide-chart/deckdeckgo-slide-chart.tsx index 8ac6388cf..79662e736 100644 --- a/src/components/slides/deckdeckgo-slide-chart/deckdeckgo-slide-chart.tsx +++ b/src/components/slides/deckdeckgo-slide-chart/deckdeckgo-slide-chart.tsx @@ -5,7 +5,8 @@ import {DeckdeckgoUtils} from '../../utils/deckdeckgo-utils'; enum DeckdeckgoSlideChartType { LINE = 'line', - PIE = 'pie' + PIE = 'pie', + BAR = 'bar' } @Component({ @@ -122,10 +123,17 @@ export class DeckdeckgoSlideChart implements DeckdeckgoSlide { private renderChart() { if (this.type === DeckdeckgoSlideChartType.LINE) { - return + margin-top={this.marginTop} margin-bottom={this.marginBottom} + margin-right={this.marginRight} margin-left={this.marginLeft} + smooth={this.smooth} area={this.area} ticks={this.ticks} + grid={this.grid}> + } else if (this.type === DeckdeckgoSlideChartType.BAR) { + return } else { return