...
The following code is for interactive charts made with eChart and should also be put in the "Custom Footer". You can find more about interactive ECharts here.
Code Block | ||
---|---|---|
| ||
<script> $(document).ready(function() { //ID of one's eChart can be found in html elements of the chart when launching the app //which can be found by right-clicking the chart and pressing "Inspect" var aChart = echarts.init(document.getElementById('some_id')); aChart.on('click', function(params) { console.log("Click!"); console.log("Data name: " + params.name); console.log("Data value: " + params.data); }); }); |
...