I’ve got a problem with a chart I’m developing. I’m adding just four points to an XY scatter series – the X values are 0, 1, 5, 10, and the Y values range from approx 3000 up to approx 60000.
We measure chemical elements, and in my app I can change the unit of measure from “parts-per-billion” (ppb) to “parts-per-quadrillion” (ppq), resulting in the X-values changing to 0, 1000000, 5000000, 10000000 (note that the Y-values remain unchanged). Even though there are still only four points, the chart now takes several seconds to render. Any ideas why this might be, and what I can do to improve things?
I have attached my chart XAML in case it is relevant. Note the MajorDelta is being calculated as “largest_X_value / 5” (I would always like to see 5 ticks/labels on the X-axis). The VisibleRange is simply being bound to 0 and the maximum X-value. I’m having a bit of a hard time getting the axis labels/ticks “just so”, hence why I’m resorting to some of these bindings and GrowBy values.
We’ve seen a few rare cases where the tick generator gets stuck, outputting thousands of gridlines. We’ve put tests in to catch this but that’s my hunch over what it might be. Can you tell me, what is MajorDelta and MinorDelta in this case? Are you using auto-generation of these properties or manual?
If you don’t spot it, feel free to send over a code sample by email that reproduces the problem.
Please login first to submit.