Use google charts to display different lines, and be able to measure in the canvas

25 views
Skip to first unread message

Job van de Noort

unread,
Oct 17, 2023, 11:51:58 AM10/17/23
to Google Visualization API
Hi all,

I use google charts with success to display 2 to 10 lines with X and Y data.
Now I want to be able to draw a line or polygon in the canvas to measure a length or area.
Is this possible to do? or what should I implement to make this possible.

kr,
Job

Job van de Noort

unread,
Oct 18, 2023, 5:28:30 AM10/18/23
to Google Visualization API
I added 2 screenshots as an example.
Screenshot 1 gives length
Screenshot 2 gives an area
Screenshot 3 shows what I got using chart.js. I can draw just 1 line and it will give me the length in pixels, not in meters according to the scale of the graph.
screenshot 2.png
screenshot 1.png
screenshot 3.png
Reply all
Reply to author
Forward
0 new messages