Forum Discussion
Is it possible to custom visualization based on echarts?
MawashiKid Thank yoou for the help.
Seeing these solutions, I tried to go another way and use google.visualizations lib.
But I still can't doing the visual.
Here, you can see my class visual.ts. The problem is that the code does not pass from the line "google.load('visualization', '1.0', {packages:['corechart']});"
Can you help me? Do you see something wrong?
Thanks,
JeanPierre.
Could you please share your source code in order to look into the issue deeper?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
- rcyber8 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-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