Use google charts to display different lines, and be able to measure in the canvas
27 views
Skip to first unread message
Job van de Noort
unread,
Oct 17, 2023, 11:51:58 AM10/17/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.