I’m trying to find some more info on SeriesAnimation. I’m implementing a ScaleAnimation that works when the chart first loads but I’d like for the series to animate each time the series is updated as well.
Is there a good way to do this?
Here’s my XAML for the ScaleAnimation that animates once when the chart loads…
<sci:FastImpulseRenderableSeries.SeriesAnimation>
<sci:ScaleAnimation AnimationDelay="0:0:1" Duration="0:0:1" />
</sci:FastImpulseRenderableSeries.SeriesAnimation>
- Greg Knox asked 4 years ago
-
Hi Greg, whats the effect you’re trying to achieve? As each point is added, sort of animate to the new point location?
-
Hey Andrew, That is it. So when the value changes from X to Y there’s a quick transition between there. Kind of a side note, but is there a way to bind data to a DataSeries in XAML? I’m able to declare a DataSeries tab but I’m not sure what to populate it with. For example (using square brackets so it doesn’t get hidden): [sci:FastImpulseRenderableSeries.DataSeries] [!– Not sure what goes here –] [/sci:FastImpulseRenderableSeries.DataSeries]
-
Let me check on the Animation. For DataSeries binding – open a separate question? (otherwise things get lost)
-
Hi Greg, Yuriy on our team is looking into a solution for you. Its not possible out of the box but might be possible with a custom animation. Best regards, Andrew
- You must login to post comments
Hi Greg,
I’ve created small example of how you can achieve described animation behavior using existing API and custom transformation logic for PointSeries.
Let us know if these example was useful to you.
Best regards,
Taras
- Taras Sobchyshak answered 4 years ago
- You must login to post comments
Hello, Andrew So that’s it. There is a brief transition when the value switches from X to Y. As a sort of unrelated question, is there a method to connect data to a DataSeries in XAML?
- paxton leiny answered 10 months ago
- last edited 10 months ago
-
Hi there, you can declare a RenderableSeries in XAML and then bind to a DataSeries in the ViewModel or set a DataSeries in code-behind. There is no way to create a DataSeries in XAML, however you could if you wanted to, use converters or markup extensions to create DataSeries. I suggest opening a new question if you need help.
- You must login to post comments
Please login first to submit.