javascript - Rename legend on export in highchart -
i know highcharts makes possible update legend using following function:
chart.legend.allitems[0].update({name:'aaa'});
also possibility hide or show legends on export working.
exporting:{ chartoptions:{ legend:{ enabled:true } } }
but now, rename specific legend during export. there way bind update code export-function in highcharts?
update series in chart.events.load
event, example:
exporting: { chartoptions: { chart: { events: { load: function (e) { this.series[0].update({ name: "new name." }); } } } } }
Comments
Post a Comment