Hello!
I’ve recently been improving our app performance by converting some things from annotations to renderable series. I’ve done this for a custom annotation we used to use and it sped things up tremendously (makes sense, we had 4000+ annotations in one case whereas it’s now down to 40 renderable series).
Now, I’m looking at converting our 2000+ BoxAnnotationViewModel and 2000+ AxisMarkerAnnotationViewModels into 1 renderable series each. I think it’s pretty straightforward to do the boxes through the render context API, but I am failing at my first attempts of drawing the axis markers through a renderable series. The main issue is that I don’t think a renderable can be drawn outside of the viewport like the axis markers would require.
Any ideas or guidance?
Thanks so much,
Matthew
- Matthew Trahan asked 1 month ago
- Hi Matthew, Thanks for your inquiry. I’ll discuss this with our developers in more detail and get back to you with an update. Kind regards, Lex, SciChart Technical Support Engineer
- You must login to post comments
Hi Matthew,
We discussed your inquiry.
There could be two possible solutions.
-
As you’ve already mentioned, RenderableSeries cannot be drawn outside of the render surface. So you could draw AxisMarker-like elements to the inside of the SciChartSurface.
Also, to give them some space near the YAxis edge and avoid overlapping with the BoxAnnotation-like Series, you can set the corresponding GrowBy property value for the XAxis.
Please have a look:
SciChart WPF Documentation – GrowBy Property (AxisCore) _ WPF Chart Documentation -
Alternatively, to reduce the number of AxisMarkerAnnotations shown on the chart, you could aggregate the close AxisMarkers by showing all of the details in the Tooltip and expand them when zoomed in.
Please let us know if this helps.
Kind regards,
Lex,
SciChart Technical Support Engineer
- Lex answered 1 month ago
- last edited 1 month ago
- You must login to post comments
Please login first to submit.