Search code examples
amchartsamstock

Difference between `ChartScrollbar` and `ChartScrollbarSettings`?


In AmCharts documentation,both ChartScrollbar and ChartScrollbarSettings have same properties and looks like they bring about the same feature for the stock chart.Any significant difference between them?

http://docs.amcharts.com/3/javascriptstockchart/ChartScrollbar http://docs.amcharts.com/3/javascriptstockchart/ChartScrollbarSettings


Solution

  • Ok, so it seems like the ChartScrollbarSettings do not work like the other settings:

    In a StockChart a global scrollbar is added by default. It does not matter if you're using the ChartScrollbarSettings for settings properties, or not. It will be created unless you're using:

    ChartScrollbarSettings: {
        enabled: false
    }
    

    In the panels you can still add local scrollbars using ChartScrollbar (Panel control is AmSerial). They work only for the panel they're inside.