Specifying a pie charts maximum

8 views
Skip to first unread message

Robert Snyder

unread,
Mar 11, 2018, 4:59:56 PM3/11/18
to Google Visualization API
When using a pie chart can the size of the pie be specified?

Example:
In my case I monitor a shared network bandwidth of 12,000,000 bits per second RX and TX.
I collect the usage from each house radio (it's a rural wireless network) every 5 minutes and create 2 pie charts,
One pie chart is traffic to the ISP and one pie chart is from the ISP and I can visualize the percentage
each house is contributing to current bandwidth consumption.

I thought there would be a way to specify that the size of the entire pie was 12,000,000 and have the
houses be slices of the pie and an unallocated section, but I dont see a way to do it.
I get around it by doing the math Unused = 120000000 - house1usage - ... - houseNusage.
Just thought this would be a useful feature if it does not already exist and something I might use if it does.

Turns out I like my solution might be better anyway because sometimes the ISP's traffic shaping allows us to exceed our cap.
Resulting in Unused bandwidth turning into a negative number which the pie chart rendering code understandably does not like.
I solved that by zeroing unused should it go negative and the supersized pie chart works fine.

So repeating the question is there a way to specify the size of the entire pie chart, so an "unused" slice will result?

thanks
Robert

Daniel LaLiberte

unread,
Mar 11, 2018, 8:42:13 PM3/11/18
to Google Visualization API
Hi Robert,

There is no such option, though it sounds like it might be useful.

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/d29b04e2-da8b-45fb-9f86-b452cb9376b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
Message has been deleted
0 new messages