Added bar.space as an optional property to ChartConfiguration interface (#22804)

* Added bar.space as an optional property to ChartConfiguration interface

This property lets you to set space between bars in bar charts

* Add tests for new property
This commit is contained in:
dmitryshindin
2018-01-10 11:20:15 -08:00
committed by Ryan Cavanaugh
parent 68e71f0c21
commit 75b53205ce
2 changed files with 6 additions and 1 deletions
+2 -1
View File
@@ -619,7 +619,8 @@ function chart_bar() {
width: {
ratio: 0.5, // this makes bar width 50% of length between ticks
max: 50 // this limits maximum width of bar to 50px
}
},
space: 10 // this adds space between bars in bar charts
// or
// width: 100 // this makes bar width 100px
}
+4
View File
@@ -178,6 +178,10 @@ export interface ChartConfiguration {
* Set if min or max value will be 0 on bar chart.
*/
zerobased?: boolean;
/**
* Set space between bars in bar charts
*/
space?: number;
};
pie?: {