You are not logged in.
hello
I have two graphs
I would like when i put on handleClick 1 add a title1 " Euros" and remove title 2,
and when iput on handleClick2 I add a tittle 2 " kW.h" and reove title1
function handleClick (data) {
for (var i = 0; i < chart.graphs.length; i++) {
if (chart.graphs[i].valueField == data.dataItem.valueField) {
chart.showGraph(chart.graphs[i]);
}
else {
chart.hideGraph(chart.graphs[i]);
}
}
}
thank you a lot of
Offline
You can update chart title this way:
chart.titles[0].text = 'New title text'; chart.validateNow();
Offline
© amCharts | Forum engine: PunBB