Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.

0

0

I have four basic line charts that are next to a storyboard animation. Basically when I press run, I draw a vertical line through each chart that moves based on the elapsed time of the animation. The point is to show where in the time-axis the current animation frame is occurring.

I was using Windows.Controls.DataVisualization.Tookit but when drawing the four lines my animation would become choppy. I tried implementing with SciChart and find the performance is just as bad. Any tips? It was my understanding this would be a great improvement.

My approach is just to have two FastLineRenderableSeries per chart, and every time the animation traps in the Storyboard_CurrentTimeInvalidated, I clear the 2nd series(that only has 2 datapoints) and do a series.append at the coordinates of the line. If I disable the lines, it runs fine, and if I switch tabs on my application so the charts are hidden(but lines are still being drawn), it runs fine.

I would recommend trying a VerticalLineAnnotation, setting IsEditable=false (so it cannot be dragged) and animating the X1 property. The annotations are separate entities to the chart, and updating an annotation will not trigger a full redraw of the chart, whereas updating a FastLineRenderableSeries inside an animation callback will trigger a full re-draw of all series.

Please try this and let me know how you get on. If you still have problems posts some code & screenshots and we’ll do our best to help/