Start a new topic
Solved

HTMLDrawable and Chart.js - charts not rendering

I've tried several ways to get a chart from Chart.js to work inside a HTMLDrawable and all I get is the html file containing the chart rendered perfectly but not the chart itself.


I have confirmed that the chart works by loading the same html file into two different browsers.


Is there something about canvases that HTMLDrawable doesn't handle? If not, are there any examples using Chart.js or any other kind opf charting methods and/or framework available that are know to work with HTMLDrawables?


Hi Timothy,


The HTMLDrawable is supporting simple html and if you wish to work with more complex HTML, JS, ... there might be unforseen challenges. In general, as this Drawable and its rendering is very dependent on the actual device and might differ by device, we generaly recommend to not use the HTMLDrawble for complexer things.


Thx and greetings

Nicola

Hi Nicola,


Thanks for the reply. I have managed to get both Google Charts and HighCharts working inside a HTMLDrawable so all is good.



Regards,

Tim

Login or Signup to post a comment