Is there a way to disable the new focus and hover effects on Pie Charts?

5,391 views
Skip to first unread message

Niek Kouwenberg

unread,
Dec 13, 2011, 9:30:24 AM12/13/11
to Google Visualization API
As of Decemer 7, 2011 the following new feature was added for all
charts:
> New visual effects for focus and selection of chart elements in scatter, line, area, and other charts.

For a pie chart, this means a big border (over 10 pixels) is added
around the chart, without any way to disable this.

You can specify the width and height (of top/left offset) of the chart
within the canvas (containing element). I have set these to 100%,
making the pie chart exactly as big as the canvas. However without any
means of disabling the added border, these are cut off and only
visible in the corners of the chart.

Can I disable the border? If so; how?
If not; what is the exact size? So I can make my chart smaller so it
will fit. (Onclick the border becomes even larger)
Or; can you automatically make the chart smaller to reserve space for
the border? Not recommended.

Riccardo Govoni ☢

unread,
Dec 13, 2011, 1:46:16 PM12/13/11
to google-visua...@googlegroups.com
Try passing this option to your pie chart. This will disable the border, but will also cause the chart to lose other interactivity-related events, such as the tooltips when moving the mouse over the pie slices.

enableInteractivityfalse

- R.


--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.


Niek Kouwenberg

unread,
Dec 14, 2011, 3:52:03 AM12/14/11
to Google Visualization API
Thanks. This works for me.

However I think you should be able to only disable/configure the
border, as it conflict with other features and is not backward
compatible.

On 13 dec, 19:46, Riccardo Govoni ☢ <battleho...@gmail.com> wrote:
> Try passing this option to your pie chart. This will disable the border,
> but will also cause the chart to lose other interactivity-related events,
> such as the tooltips when moving the mouse over the pie slices.
>
> enableInteractivity: false
>
> - R.
>

Riccardo Govoni ☢

unread,
Dec 14, 2011, 5:08:21 AM12/14/11
to google-visua...@googlegroups.com

Having the chart area settings negatively  affect the visibility of part of the chart (I consider the border highlight to be part of it) sounds like a bug anyway.

I created an example here to highlight it: http://savedbythegoog.appspot.com/?id=f0c78d7addfa1b3d966da9781871f830dc7db049

(border cut in top and left margins).

And a bug to track the issue: http://code.google.com/p/google-visualization-api-issues/issues/detail?id=756

- R.

Reply all
Reply to author
Forward
0 new messages