We could probably change the wonky animation to use the position as a
backup, in case most values are different enough that there is no point
trying to use the values.  It may have done something like that in the
past, but that algorithm had bad performance (as in, it was slow) in many
cases, so we simplified it.

You could so something similar by using numeric values instead of the
university names, but still display them as you want by specifying the
formatted representation of each value.  That is, instead of using
["University of Minnesota", ...] use [{v: 0, f: 'University of Minnesota'},
...]  But then you will also need to specify your axis tick values in a
similar way with the 'ticks' option:

var options = {
  hAxis: { ticks: [{v: 0, f: 'University of Minnesota'}, {v: 1,
f:'University of Illinois'}, ...] }
}

The values have to be numeric to use the explicit 'ticks' option.


On Tue, Apr 7, 2015 at 2:50 PM, newsonaut <[email protected]> wrote:

> I have a column chart displaying two sets of data, and I want to use
> animation when switching back and forth between them.
>
> If the first values are the same in each set (i.e., the names of the
> universities along the bottom), then the animation works as expected. But,
> of course, the names would be incorrect.
>
> Example of good animation: http://newsonaut.com/chart/animgood.html
>
> If the values are changed (i.e., different university names are used),
> then the animation does a weird swipe to the side.
>
> Example of wonky animation: http://newsonaut.com/chart/animbad.html
>
> Is there any way to get around this, other than turning off the animation?
>
> --
> 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.
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>  -
978-394-1058
[email protected] <[email protected]>   5CC, Cambridge MA
[email protected] <[email protected]> 9 Juniper Ridge
Road, Acton MA

-- 
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.

Reply via email to