My use case is :
I have 2 line series in SfCartesianChart. where year is on x-axis and population is on Y axis. each series indicates a country. I added animation duration (20 sec) in chart so that it will give more visual effect of population change over the last 10 years.
I want to show country name (legend) on last datapoint of series , so that it will be more readable when animation is in progress. A sort of : Running snake (lines) having its name on its head (last datapint)
Thank you so much for your quick reply.
Yes we are almost there. But here is twist we are using syncfusion animation to render a line slowly on chart by using animation duration (20 second) , and during this animation duration we want to highlight last datapoint (mark).
And in animation last datapoint is changing over the period of 20 second (animation functionality does it).
Hope you revert back soon.
Thank you so much for your quick reply.
Yes we are almost there. But here is twist we are using syncfusion animation to render a line slowly on chart by using animation duration (20 second) , and during this animation duration we want to highlight last datapoint (mark).
And in animation last datapoint is changing over the period of 20 second (animation functionality does it).
Hope you revert back soon.
Hi Yuvaraj,
Sorry for confusion "I want line race by using syncfusion animation functionality" So that i can create nice video out of it with simply specifying animation duration.
Example : Line Race with legend at the end
Example 2: Line chart Race example 2
We are using animation functionality to create small videos out of chart, We are able to create line race using animation, but unable to annotate last datapoint. as shown in above example charts.
Regards,
Dhananjay.
Ok, thanks.
I will implement custom animation by using timer + updateDatasource + annotation + setState() method as suggested by you in very first reply.
But going forward it will be great if we get this functionality in within syncfusion animation or provide different chart type "line race".
Can you convert this as new future request in flutter syncfusion ?
I implemented custom animation by using timer + updateDatasource + annotation + setState()
Here i am facing problem if annotation text is big its getting disappear. i tried various approaches like passing annotation text in "Wrap" or "Flexible" widget but its not working.
Do you know how to fit annotation having big text in chart ?