Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hiding bubble label on google bubble charts

I'm working with Google Charts API to display a bubble chart. Everything is working fine except that the labels on the individual bubbles gets kind of annoying when the bubbles are close together. I really just want to hide the labels but can't seem to find an option to do it. Has anyone worked with google bubble charts and knows how to hide the label?

like image 757
sankofamusician Avatar asked Jan 30 '12 04:01

sankofamusician


People also ask

How do you make bubbles transparent in a bubble chart?

(1) Click Fill tab and check Solid fill option, then drag the Transparency slider to the bubble transparency you need.

How do I change the data labels in a bubble chart?

Click the chart, and then click the Chart Design tab. Click Add Chart Element and select Data Labels, and then select a location for the data label option. Note: The options will differ depending on your chart type. If you want to show your data label inside a text bubble shape, click Data Callout.

How do I edit a bubble chart in Google Sheets?

Go to the Set-up tab and select Chart Type from the drop-down arrow. Select the second option, Bubble, from the Scatter Chart drop-down menu. Replace the bar chart with bubble chart in Google Sheets. Go to the Customize option in the chart editor and edit and format your Bubble Chart.


2 Answers

If you set the first column of the data table to a blank string then you won't have this information in the tooltips either.

An alternative is to keep the strings and set bubble.textStyle.color = "transparent"

like image 143
lorserker Avatar answered Sep 22 '22 09:09

lorserker


Set the values in the first column (ID) to a blank string. See the documentation, second example https://developers.google.com/chart/interactive/docs/gallery/bubblechart

like image 34
Jason Strimpel Avatar answered Sep 24 '22 09:09

Jason Strimpel