Draw chart in gui box node

Hello,

What would be the best way to draw a chart in a gui box node?

Is it possible to display webview open_raw in a gui box node? I did some research but it seems webviews are displayed on top of everything else in a separate popup? I’d like to be able to use chart.js (javascript charting solution for for html) with defold in a gui box node…

Also it seems to me that custom easing (https://defold.com/manuals/animation/#custom-easing) may be a solution but it isn’t clear to me how to draw a curve based on a vector as in the example i linked to?

Thank you.

Ed

Graphs can be drawn using DrawPixels
This was discussed in this thread: Drawing plots and charts

1 Like

Thank you, yes it seems that’s the only way. Webview can be used as well but then it’s not appearing in a gui box node.

The custom easing chart example I was referring to uses drawpixels as well (https://github.com/agulev/easier)