I am creating a pie chart using AmCharts. I am trying to alter the legend lablelText to show the title, percent and value. I have tried the following which is not working: (This is being passed to the AmCharts.makeChart() method
            "legend": {
                "align": "center",
                "position": "right",
                "marginRight": 21,
                "markerType": "circle",
                "right": -4,
                "labelText": "[[title]]: [[percents]]% $[[value]]",
            },
In the end I discovered I should be using valueText not labelText and so was able to change to this:
           "legend": {
                "align": "center",
                "position": "bottom",
                "marginRight": 21,
                "markerType": "circle",
                "right": -4,
                "labelText": "[[title]]",
                "valueText": " $[[value]] [[percents]]%",
                "valueWidth": 80,
                "textClickEnabled": true
            },
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With