Forum Discussion
Is it possible to custom visualization based on echarts?
Could you please share your source code in order to look into the issue deeper?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Hello!
Many thanks to Ignat for replies.
I am trying to solve the same thing.
I have installed the ECharts library using npm. Then I added typings of ECharts.
It works good, pbiviz compiles my sources without errors.
But I don't see anything on the developer's visual.
I put my code into try{} statement like:
try {
let myChart: ECharts.ECharts;
myChart = ECharts.init(chartDiv);
}
catch(exc){
console.log(exc);
}Then I have got the error in console: ReferenceError: "ECharts is not defined"
Browser does not see a types/declarations. Why?
What do I wrong?
Thanks in advance...
- v-viig8 years agoCommunity Champion
Please try to use window["ECharts"] || window.window["ECharts"]
If it fails please share source code by sending an email to [email protected]
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals