Hello,
I was looking for a way to click on an EChart bar and then being redirected to a linked form. Couldn't find that already implemented. But obviously, I can add an eventhandler to an EChart this way with the event containing the clicked x- and y-axis values:
$(".echarts").attributes['_echarts_instance_'];
obj = window.echarts.getInstanceById('ec_<id>');
obj.on('click', function (event) { console.log(event); });
Is that a proper way? And is there a way to pass some recordid (additional to the tooltip and axis values) so one can easily load another form with that id instead of e.g. extracting required ids from the tooltip?
Thank you!
Martin