This allowed me to create an application where one could click on the graphs and allow them to interact with each other. With Stadium 6, I see we are using Vue.js and thus the task becomes more complex without having access to the Vue scripts, furthermore, we no longer have access to the echarts library (I also couldn’t get the echarts to get the chart instance by copying ‘/VitalityPOC/Scripts/echarts.min.js’ to the Stadium6 application).
Is there a way to monitor clicking on the graph in Stadium 6, or is it something we could request to be added?
Thanks for the prompt reply. I agree, adding this allows you to access the echarts library and functions such as echarts.getInstanceById().
var myChart = echarts.getInstanceById($('#StartPage_Chart').attr('_echarts_instance_'));
Unfortunately, from here I am unable to set the variable to the chart instance in Stadium 6 (myChart is always undefined). I don’t know whether it is due to the library being incompatible with vue-echarts?
Please will you try set var myChart in a Stadium 6 application to the chart instance and let me know if you can monitor clicks.
Hi. I gave it a try and was not able to get a hold of the chart instance either.
I’m not sure if the instance is still obtainable when vue-echarts is being used.
I’ll let @anton.platzoeder know about the change in Stadium 6 so he can decide on the course of action.