You can provide a list of columns that return no data, which will draw an
empty chart, eg:
columns: [1, {
type: 'number',
calc: function () {return null;}
}];
or you can clear the chart to remove it from the page:
chart.getChart().clearChart();
On Sunday, June 1, 2014 2:51:12 PM UTC-4, cyb wrote:
>
> Hi,
>
> i use a chartwarapper to draw different charts and each chart gets
> normally a view like this:
>
> view : {columns: [1,2,3]}
>
> then it draws me the 3 values. but sometimes i need an empty chart.
>
> the problem is, if i draw a chart with this view "view : {columns:
> [1,2,3}" and after that i provide only an empty view like this "view :
> {columns:}" i get an error and the old chart is still alive.
> but i want, if i provide an emty view that the actual chart is deleted and
> shows no data.
> Is this possible ?
>
> Best regards
> cyb
>
--
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 http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.