javascript - How can I add a custom class to the AmChart legend? -
i want wrap html tag around labels in legend. looked through documentation amlegend()
, , didn't find obvious. there way this?
the legend comes "amchartslegend" if prefer own classnames can access within created chart instance "legenddiv"
var chart = amcharts.makechart({...}); chart.legenddiv.classlist.add('your-classname');
i hope helped :)
Comments
Post a Comment