Thanks for the tip. Unfortunately, even if you make the value null or
format it to be empty, you are still stuck with a : below the label.

On Nov 3, 9:43 am, asgallant <[email protected]> wrote:
> I don't think the charts are meant to be rendered without any data.  If you
> are concerned about numbers showing up in the tooltips, you can get around
> that by setting the formatted value of the data to an empty string, like
> this:
>
> function drawVisualization() {
>     var data = new google.visualization.DataTable();
>     data.addRows(5);
>     data.addColumn('string', 'State');
>     data.addColumn('number', 'Number');
>     data.addRow(['virginia', {v: 1, f: ''}]);
>     data.addRow(['Maryland', {v: 1, f: ''}]);
>     data.addRow(['District of Columbia', {v: 1, f: ''}]);
>     data.addRow(['California', {v: 1, f: ''}]);
>     data.addRow(['Texas', {v: 1, f: ''}]);
>
>     var geochart = new google.visualization.GeoChart(document.getElementById
> ('visualization'));
>     geochart.draw(data, {
>         width: 556,
>         height: 347,
>         region: 'US',
>         resolution: 'provinces',
>         colors: ['red', 'red']
>     });
>
>
>
>
>
>
>
> }

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

Reply via email to