Merge pull request #16356 from gisinc/feature/add-scrollbaroptions-to-axisoptions

[highcharts] Add the scrollbar property to the xAxis and yAxis to optionally enable scrolling in charts
This commit is contained in:
Arthur Ozga
2017-05-16 13:34:35 -07:00
committed by GitHub
3 changed files with 12 additions and 1 deletions
+6
View File
@@ -81,10 +81,16 @@ declare namespace Highstock {
trackBorderWidth?: number;
}
interface AxisOptions extends Highcharts.AxisOptions {
scrollbar?: ScrollbarOptions;
}
interface Options extends Highcharts.Options {
navigator?: NavigatorOptions;
rangeSelector?: RangeSelectorOptions;
scrollbar?: ScrollbarOptions;
xAxis?: AxisOptions[] | AxisOptions;
yAxis?: AxisOptions[] | AxisOptions;
}
interface Chart {
+4
View File
@@ -9,6 +9,10 @@ $(() => {
type: "arearange"
},
xAxis: {
scrollbar: { enabled: true }
},
navigator: {
height: 80,
maskFill: 'rgba(255, 198, 220, 0.75)',
+2 -1
View File
@@ -4,6 +4,7 @@
"ban-types": false,
"unified-signatures": false,
"no-empty-interface": false,
"dt-header": false
"dt-header": false,
"no-object-literal-type-assertion": false
}
}