Create a plot with x and y coordinates

asked 2021-10-11 05:13:08 -0500

bela gravatar image

Hi guys, I have a robot whose data I can write to the website, but I should do a plot. I try to use it, but it doesn't work very well.

https://stackblitz.com/edit/canvasjs-...

My code snippet: image description

Can anyone help?

edit retag flag offensive close merge delete

Comments

I think your question needs a bit more context. If you are receiving the data from your robot (including x and y) then it seems more a question that needs to be directed to whatever library you are using for plotting. It seems you use javascript with predefined points. Now you should get the position from the topic of your robot and replace it there. I don't know how to do it with javascript.

Bernat Gaston gravatar image Bernat Gaston  ( 2021-10-11 05:23:54 -0500 )edit