Re: [visualization-api] Re: Pie charts draw slice labels in positions causing them to be cut off

2017-10-12 Thread Adam Reece
*Likely resolved*: Adding a 500ms delay to the jQuery that moves the charts to their intended tab after drawn using a `setTimeout()` seems to have done the trick. There is probably something asynchronous still going on between calling `draw()` on the charts and the main JS wanting to move them

Re: [visualization-api] Re: Pie charts draw slice labels in positions causing them to be cut off

2017-10-12 Thread Adam Reece
Interestingly the pie charts in question are on different tabs (Bootstrap). However to fix a different issue what we do is render them on the first visible tab, then once all charts have finished rendering they are shifted onto their intended tabs. I'll have a play around with this, but

Re: [visualization-api] Re: Pie charts draw slice labels in positions causing them to be cut off

2017-10-10 Thread 'Daniel LaLiberte' via Google Visualization API
The issue is most likely that the text size is effectively zero because you are drawing the chart when it is not yet displayed. That's why it appears to be left aligned rather than centered. The workaround is to arrange that you only draw the chart when it is displayed. On Tue, Oct 10, 2017 at

[visualization-api] Re: Pie charts draw slice labels in positions causing them to be cut off

2017-10-10 Thread Adam Reece
I forgot to mention -- Changing the donut size down does not impact the label position, even if the donut mode is disabled completely. -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this group and stop