Google Chart Horizontal Scrollbar
Solution 1:
Google Charts has this explorer feature whereby you can scroll and zoom in/out of the Chart. However, no buttons or scroll bar will be displayed. You will have to use your mouse to drag and move horizontally on the chart displayed.
To allow this feature, simply add explorer: {axis: 'horizontal'}
in your options object. You may notice that you can visit areas where there is no data displayed, to stop this add keepInBounds: true
to the explorer options to give explorer: {axis: 'horizontal', keepInBounds: true}
.
More information on the explorer
options is available here under the table row name explorer
.
If you would like a scroll bar feature, then another feature you could explore is a Google Charts ChartRangeFilter available here. Implementation details and steps are available here and changes need to be made accordingly to your chart type.
Post a Comment for "Google Chart Horizontal Scrollbar"