TreeMap - add rectangle overlay

15 views
Skip to first unread message

Dan Corneanu

unread,
Nov 20, 2016, 3:03:04 AM11/20/16
to Google Visualization API
Hello,
I am using a TreeMap chart to visualize the effort required for a set of projects. Each nod represents the estimated effort required to complete that particular project. I need to draw another rectangle over the chart, aligned with the right top corner, to visualize the overall available capacity so that you can easily tell if there will be a shortage of available capacity. Please see attachment for an example.

What would be the best way to achieve this?
1. add an overlay using HTML div with relative and absolute positioning. How can I find out the coordinates of the top-right corner (excluding the breadcrumbs area)?
2. try to alter the generated SVG element after the chart is painted. Is TreeMap always rendering as SVG?

Are there any other options? Any advice is greatly appreciated.

Regards,
Dan

P.S.
Thank you for making this library freely available. It saved me a lot of time and effort.
Screen Shot 2016-11-20 at 8.46.00 PM.png
Reply all
Reply to author
Forward
0 new messages