The figure misaligned in Multiple google pie charts

38 views
Skip to first unread message

Keny

unread,
Mar 17, 2017, 5:08:37 AM3/17/17
to Google Visualization API
Hello All,

I tried hard to figure out the ans but I didn't quite get my problems solved.
How to fix the misaligned figures in the chosen charts in the drop list?
https://codepad.remoteinterview.io/FSDZOWRIKT
Many Thanks.

Daniel LaLiberte

unread,
Mar 17, 2017, 8:52:32 AM3/17/17
to Google Visualization API
If you are rendering the chart when it is not visible, then the chart doesn't correctly calculate the size of text, so for the PieChart, it appears offset.  That looks like the cause of the problem here.

--
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/f48baf65-b0f6-4e04-8ee1-b2322da20f8d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Keny

unread,
Mar 19, 2017, 9:35:21 PM3/19/17
to Google Visualization API
Thanks Daniel,what action would you recommend to take in this case?

Daniel LaLiberte於 2017年3月17日星期五 UTC+8下午8時52分32秒寫道:
If you are rendering the chart when it is not visible, then the chart doesn't correctly calculate the size of text, so for the PieChart, it appears offset.  That looks like the cause of the problem here.
On Fri, Mar 17, 2017 at 5:08 AM, Keny <keny4...@gmail.com> wrote:
Hello All,

I tried hard to figure out the ans but I didn't quite get my problems solved.
How to fix the misaligned figures in the chosen charts in the drop list?
https://codepad.remoteinterview.io/FSDZOWRIKT
Many Thanks.

--
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-visua...@googlegroups.com.



--

Daniel LaLiberte

unread,
Mar 19, 2017, 10:01:39 PM3/19/17
to Google Visualization API
Until we have a way of measuring text even when it is not visible, you'll have to arrange to draw the chart only when it is visible.  You can either defer drawing until the chart is first displayed, or you may find it easier to temporarily make each chart container visible as it is drawn the first time.  Hope that helps.

On Sun, Mar 19, 2017 at 9:35 PM, Keny <keny4...@gmail.com> wrote:
Thanks Daniel,what action would you recommend to take in this case?

Daniel LaLiberte於 2017年3月17日星期五 UTC+8下午8時52分32秒寫道:
If you are rendering the chart when it is not visible, then the chart doesn't correctly calculate the size of text, so for the PieChart, it appears offset.  That looks like the cause of the problem here.
On Fri, Mar 17, 2017 at 5:08 AM, Keny <keny4...@gmail.com> wrote:
Hello All,

I tried hard to figure out the ans but I didn't quite get my problems solved.
How to fix the misaligned figures in the chosen charts in the drop list?
https://codepad.remoteinterview.io/FSDZOWRIKT
Many Thanks.

--
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+unsubscr...@googlegroups.com.



--

--
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.

For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages