Hi, i also had this issue, i found a solution: use the pie chart message 
calling piechart template with no data on the container you want to show 
"No Data" message, without know about how to show this message on other 
kind of charts:

drawPieTemplate(array1,container1);

if (array2.length==0){
   drawPieTemplate(array2,container2);
} else {
   drawBarTemplate(array2,container2);
}

My suggestion is to prepare pietemplate, bartemplate, columntemplate, ... 
functions with data and container as parameters so you can do it easily!

Alessandro

Il giorno venerdì 3 agosto 2012 16:18:02 UTC+2, tanmay_dg ha scritto:
>
> Hi,
> I found a temporary solution to this. When I draw charts and the data 
> table is empty my column and bubble charts give error. The error is 
> displayed in a span div. I binder and error event with the charts and in 
> the method removed the span div and added the div which says no data in the 
> same format as pie chart. The only problem with this is you cannot get the 
> container id from the error event so container ids need to be hardcoded.
>
> Tanmay
>
> Sent from my iPad
>
> On 19-Jul-2012, at 20:24, visigoth <[email protected] <javascript:>> 
> wrote:
>
> Unfortunately, our charts are indeed inconsistent in their handling of 
> empty data tables.
> Please feel free to report the issue here 
> <http://code.google.com/p/google-visualization-api-issues/issues/entry>.
>
> On Thursday, July 19, 2012 3:47:25 PM UTC+3, tanmay_dg wrote:
>>
>> Hi Wesley,
>> I'm facing the same issue. Based on the data selected by user I want to 
>> show "No Data" in Line, Bubble and Column Charts. Unlike you my Chart is 
>> not even drawing chart without the column. It just shows an error message 
>> saying not enough columns to draw chart. Did you find a solution for this?
>>
>> Thanks
>> Tanmay
>>
>> On Monday, July 16, 2012 7:00:18 PM UTC+5:30, Wesley Chin wrote:
>>>
>>> Hi there,
>>>
>>> I have a bar chart which I created and works perfectly.  All I want to 
>>> know is is there a way to display the message "no data" on the bar chart 
>>> area like the pie chart when there is no data?  Currently, when there is no 
>>> data to be displayed, it is showing the chart but with no bars.  
>>>
>>> Thanks,
>>> Wesley
>>>
>>

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/2b89af03-47a4-4e3c-aec5-2d4da4ac5872%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to