01 | { |
02 | settings: { |
03 | scrollBar: { |
04 | enabled: true |
05 | } , |
06 | scroller: { |
07 | enabled: true |
08 | } |
09 | } |
10 | } |
To navigate through the chart you either Scroller and/or Scroll Bar. You can use them in combination, or separately. Illustration below shows different combinations:
When Scroll Bar is used with Scroller they unite and become one entity. Scroll Bar buttons step aside of the chart and you should set <inside_margin> so these button could be visible.
Sample XML to enable scroll bar and define margins:
Live sample of the chart with scroll bar:
As you can see both scroll bar and scroller are shown, but please do not forget about margins, you can learn more about them in Chart Layout article.
To use scroll bar without scroller you just need to disable the last. Note that only scroller gives user an ability to change selected range and zoom in zoom out. The only feature scroll bar provides is scrolling the chart and, in this case zooming can be don using Range Selector Panel or using JavaScript API method zoomTo.
To use scroll bar alone use this XML settings:
Live sample below demonstrates settings shown above:
Note: When you use scrollbar without Scroller you have to enlarge left and right inside margins.
Scroll Bar has a lot of visual settings. Sample XML with scroll bar visual configuration:
Live sample that shows configured scroll bar:
To learn more about Scroll Bar configuration please see respective nodes in XML Reference.