Reputation: 21
I'm using amserial charts, for this i've 3 values. I've used this But it doesn't work.
`var legend = new AmCharts.AmLegend();`
chart2.addLegend(legend);
legend.valueText= "val";
I've 3 values. I want lables like this -
-Computer -Laptops -Tablets
Please suggest me, what should i do for this.
Upvotes: 0
Views: 121
Reputation: 4952
legend.valueText = "-[[value]]"; // graph value (current chartCursor selection)
legend.labelText = "-[[title]]"; // graph title
http://docs.amcharts.com/3/javascriptcharts/AmLegend#valueText http://docs.amcharts.com/3/javascriptcharts/AmLegend#labelText
Upvotes: 1