Highcharts: Change the Legend TItle on drilldown -
i'm trying have legend title change when drill-down next level of data.
currently, i'm using click event call function removes existing series , adds new ones, followed chart.redraw().
is possible set legend title using .attr in same function? i've seen few examples use change y-axis or chart title, can't working legend title.
function redrawlegend(legendtitle) { chart.legend.attr({ text: legendtitle }); };
'legendtitle' in case variable have stored drill-down data.
use: chart.legend.title.attr({ text: 'aaa' });
example: http://jsfiddle.net/ag6wq/
Comments
Post a Comment