SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!
I’d like to be able to hide the line in the FastLineRenderableSeries so only the markers show. I’ve tried setting the width to 0, but that throws exceptions as it can’t handle 0. Currently, I am setting the brush to Transparent so it is invisible, but I suspect there is still some processing related to drawing going on.
Is it possible to allow a width of 0, which just skips the drawing logic completely for the line and move on to markers?
In SciChart 2.0v series isn’t drawn and any related processing isn’t performed if IRenderableSeries.SeriesColor is set to be fully transparent. So your workaround is acceptable one.
Width property is ignored by drawing system, it is inherited from base class together with another properties of Control which aren’t used.
Alternatively, you could consider using of XyScatterRenderableSeries instead – if it is suitable in your case.
Hello – just an FYI the behaviour of FastLineRenderableSeries should be like this:
If SeriesColor is set and pointmarker set, draw both line and pointmarker
If SeriesColor is Transparent and pointmarker set, draw just PointMarkers
If SeriesColor is Transparent and PointMarker is null, draw nothing
If SeriesColor is Set and PointMarker is null, draw the line
Note that the PointMarker.Stroke by default binds to parent series SeriesColor, so you will need to set it to a Color in order to disconnect this binding so you can turn the line on or off with transparency
Please login first to submit.