Shinobi charts: column series grow animation


#1

Hi!

Shinobi charts have a predefined grow animation for column series, but when it’s applied it starts to draw column from 0 to the column value. What is the best way to create animation, that animates only the the part of the column that has changed? Basically if I have column value 5, and after some action column value changed to 8, I want that column just grow up on 3 points - from 5 to 8, not from 0 to 8.

Thanks


#2

Hi philous,

Thanks for getting in touch!

This behaviour is possible if you manipulate your datasource.

When you reload your chart you would need to add a seperate SChartColumnSeries, one for your old data (0-5) and a one for your new data (5-8).

Then disable animations on the series that would show your old data and enable animations on the series that shows your new data.

Finally, make sure the series representing your old and new data have been set the same “stackIndex” value.

This should produce the effect you’ve described.

Let me know if you have any issues. 

Kind Regards,
Andrew Polkinghorn