This repository was archived by the owner on Feb 6, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
src/components/slides/deckdeckgo-slide-chart Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ import {DeckdeckgoUtils} from '../../utils/deckdeckgo-utils';
55
66enum DeckdeckgoSlideChartType {
77 LINE = 'line' ,
8- PIE = 'pie'
8+ PIE = 'pie' ,
9+ BAR = 'bar'
910}
1011
1112@Component ( {
@@ -122,10 +123,17 @@ export class DeckdeckgoSlideChart implements DeckdeckgoSlide {
122123
123124 private renderChart ( ) {
124125 if ( this . type === DeckdeckgoSlideChartType . LINE ) {
125- return < deckgo-line-chart width = { this . chartWidth } height = { this . chartHeight } src = { this . src } separator = { this . separator }
126+ return < deckgo-line-chart width = { this . chartWidth } height = { this . chartHeight } src = { this . src }
127+ separator = { this . separator }
126128 date-pattern = { this . datePattern } y-axis-domain = { this . yAxisDomain }
127- margin-top = { this . marginTop } margin-bottom = { this . marginBottom } margin-right = { this . marginRight } margin-left = { this . marginLeft }
128- smooth = { this . smooth } area = { this . area } ticks = { this . ticks } grid = { this . grid } > </ deckgo-line-chart >
129+ margin-top = { this . marginTop } margin-bottom = { this . marginBottom }
130+ margin-right = { this . marginRight } margin-left = { this . marginLeft }
131+ smooth = { this . smooth } area = { this . area } ticks = { this . ticks }
132+ grid = { this . grid } > </ deckgo-line-chart >
133+ } else if ( this . type === DeckdeckgoSlideChartType . BAR ) {
134+ return < deckgo-bar-chart width = { this . chartWidth } height = { this . chartHeight } src = { this . src } separator = { this . separator }
135+ margin-top = { this . marginTop } margin-bottom = { this . marginBottom }
136+ margin-right = { this . marginRight } margin-left = { this . marginLeft } > </ deckgo-bar-chart >
129137 } else {
130138 return < deckgo-pie-chart width = { this . chartWidth } height = { this . chartHeight } src = { this . src } separator = { this . separator }
131139 inner-radius = { this . innerRadius } range = { this . range } > </ deckgo-pie-chart >
You can’t perform that action at this time.
0 commit comments