Search code examples
angularlegendamcharts

Amchart legend Margin between value and markers not working


i have amcharts and i add legend to charts but show text value legend on marker enter image description here

i set margin left and right to legend value but not work

    chart.legend.valueLabels.template.marginRight=10;
    chart.legend.valueLabels.template.marginLeft=10;

i will show legend like this enter image description here


Solution

  • Make sure you have chart.rtl = true; set to enable support for Arabic.

    See amcharts.com/docs/v4/concepts/rtl for more details.