Pre loader

FastLineRenderableSeries as a scatter plot

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

The note at the bottom of this page says:
“This feature can be used to create a Scatter Series, if strokeStyle contains a transparent Pen.”
https://www.scichart.com/documentation/android/current/articles/chart2d/2dChartTypes/Line%20Series.html?tabs=kotlin

If I set the lines stroke to transparent and set a point marker, nothing is rendered

    val rSeriesPL: IRenderableSeries = FastLineRenderableSeries()
    rSeriesPL.dataSeries = serPL
    rSeriesPL.strokeStyle = SolidPenStyle(0x01000000.toInt(), false, 20f, null) <<<< this works as the line is almost transparent (points show full red), but if I set it to 0x00FF0000, the point markers disappear too
    val scatterPointMarkerPL = EllipsePointMarker()
    scatterPointMarkerPL.setSize(10, 10)
    scatterPointMarkerPL.fillStyle = SolidBrushStyle(Color.Red.toArgb())
    scatterPointMarkerPL.strokeStyle = SolidPenStyle(Color.Red.toArgb(), false, 1f, null)
    rSeriesPL.pointMarker = scatterPointMarkerPL

This is in the android simulator (Just mentioning it because I’ve noticed other/unrelated oddness in the ios simulator)

Version
4.5.4
  • You must to post comments
0
0

I’m not sure why this is the case, but we probably won’t mess it it for the moment. Instead we’ll take that note off the documentation while we investigate. I don’t think there is any reason not to use a XyScatterRenderableSeries if all you want to show is pointMarkers.

Regards
David

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.