Tuesday, 29 September 2015

how to control amcharts export button location

The export button will always display on top-right corner.

If you have a chartScrollbar it will overlap on the scrollbar button.

to fix that, you can:

1, display scrollbar on botton. by :
       "chartScrollbar": {
             "oppositeAxis": false,

2. display a legend. (top, or right) by:

                "legend": {
                     "position": "top"

3. add marginTop. by:

 = AmCharts.makeChart("chartdiv_lines", {
                "type": "serial",
                "theme": "none",
                "marginLeft": 0,
                // "marginRight": 50,
                "marginTop": 50,
                "pathToImages": "//www.amcharts.com/lib/3/images/",
                "dataProvider": $scope.data,

No comments:

Post a comment