AmCharts - Position ChartScrollbar on Bottom?

3.2k views Asked by At

Is this possible? Legends have this attribute (top/bottom), and amStockCharts library has this configuration option as well. So, for the "regular" amCharts library, is it possible to position the chartScrollbar on the bottom?

I want to avoid any CSS hacks after the chart draws as well.

4

There are 4 answers

0
Adam On BEST ANSWER

In the latest update to AmCharts, this has been added as a config option. You can set "oppositeAxis: false" on chartScrollbar properties to move the scrollbar to the bottom. Hope this can be helpful.

2
zeroin On

Position of a Scrollbar in our regular JavaScript charts is always opposite the axis. So you have to set categoryAxis.position = "top" in order scrollbar to be at the bottom.

0
Arnaud On

I'm late but I didn't find a better solution elsewhere. You can use

chartScrollbar.oppositeAxis = false;
chartScrollbar.offset = 20;

This will push the scrollbar next to the categoryAxis. Use the offset to move the scrollbar away from the labels.

0
Douglas C Vasconcelos On

You can achieve that by changing chart.scrollbarX.parent value like this:

chart.scrollbarX.parent = chart.bottomAxesContainer;