k.v.
k.v.

Reputation: 21

Amserial Chart Legends

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

Answers (1)

Maertz
Maertz

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

Related Questions