SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!
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.
I’ve got a problem with LineAnnotation display on the axis: it is blurry (image 1). I have tried to use UseLayoutRounding/SnapsToDevicePixels properties from this post https://www.scichart.com/questions/question/2-1-1-lines-are-sometimes-blurry-when-added-to-modifier-surface, but it doesn’t work. Any ideas to make this LineAnnotation look like other annotation on surface?
Thanks in advance!
Sometimes you need to set the Device.SnapsToDevicePixels on elements higher in your visual tree, e.g. the Main Window, the Grid that contains the SciChartSurface etc…
If you look through our code using WPF Snoop, you will see that Device.SnapsToDevicePixels is set on everything, so try setting it on other parent elements in your application and let me know how it goes.
I have applied your approach, but it doesn’t work too (Image 1).
But I found out that when I was using strokethickness with odd values (e.g. 3,5,7), the result image is perfect (Image 2), but when I was using strokethickness with even values (e.g. 2,4,6), there were extra lines near main line like in the Image 1.
What is the reason of such behavior?
Thanks in advance!
I’m not sure what to say, our DragHorizontalThreshold example has a 2 pixel wide annotation, but its perfectly crisp (see attachments)
We have SnapsToDevicePixels and UseLayoutRounding set on the parent SciChartSurface, and many of its parent elements, but not on the annotation itself.
Try inspecting our example and use WPF Snoop to see where SnapsToDevicePixels is set, as this may help you (see second attachment)
Please login first to submit.