Forum Discussion
JeanPierre
9 years agoFrequent Visitor
Is it possible to custom visualization based on echarts?
Hi everyone, I want to create a visualization based on the echarts, however I don't know if is it possible, because the power Bi custom visualization is in typescript and the code of echarts is ...
rcyber
8 years agoResolver I
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-viig
8 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