javascript - Launch click event from tooltip highcharts -


i want launch event when clicking on tooltip of highcharts. i'm using highcharts in ionic/angular project. here example:

highcharts.chart('container', {      title: {         text: 'tooltip footer format demo'     },      subtitle: {         text: 'the tooltip should provide html table table closed in footerformat'     },      xaxis: {         categories: ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']     },      tooltip: {         shared: true,         usehtml: true,         pointformat: '<button onclick="launchevent()"></button>',         valuedecimals: 2     },      series: [{         name: 'short',         data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]     }, {         name: 'long named series',         data: [129.9, 171.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 195.6, 154.4].reverse()     }]  }); 

the problem when use code below error saying launchevent() doesn't exist in page, not correct because exit. led me think method should defined highchart's method. ideas, please? want have click event inside tooltip.


Comments

Popular posts from this blog

Ansible warning on jinja2 braces on when -

Parsing a protocol message from Go by Java -

html - How to custom Bootstrap grid height? -