New data series don't animate. You have to add a temporary data series and
then redraw with the new data series, something like this:
view.setColumns([0, 1, {
type: 'number',
label: data.getColumnLabel(2),
calc: function () {return 0;}
}]);
google.visualization.events.addOneTimeListener(chart, 'ready', function () {
view.setColumns([0, 1, 2]);
chart.draw(view, options);
});
chart.draw(view, options);
On Wednesday, April 2, 2014 2:10:58 PM UTC-4, cyb wrote:
>
> Hi,
>
> another question:)
>
> i use a dataView to show or hide columns in a lineChart with
> dataView.setColumns(0,1).
> so now i want show colum 2 also with "dataView.setColumns(0,1,2) can i
> animate this ? i want that column2 is animated if i add this value. is this
> possible with a dataView?
> Best regards
>
>
>
--
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.