Pre loader

ExtremePointMarkerPaletteProvider - colors list not sychronized on view

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

Hi,

we have a graph which it’s x axis visible range changed when the graph draw until the max (as a travel graph)
we also have logic for each serie a minimum\maximum range, outside of this range the color should be red
so, we use the ExtremePointMarkerPaletteProvider and set for each value the suttible color in the colors list.

our problem is when the graph visible range changed – the serie points is draw correctly but it’s color is not match.
the colors are stay the same as they was before the range changed.
we looked at the colors list and YValues list – the value and the color on each index was match.
the problem is only in the view.

also, after some time it’s fixed, we don’t know what cause it to be fixed…

Thanks

Version
5.2.0.116htd80
  • You must to post comments
0
0

Hi Natali,

Thanks for your inquiry,

Could you please provide us with a small sample project reproducing this issue for investigation?

Thanks in advance.

  • You must to post comments
0
0

Hi,

Attached is an example of the graph we used with IExtremePointMarkerPaletteProvider
In this example:
1. The axis is 1000 seconds, after 1000 sec. the axis is moved and new points are displayed (1-1001,2-1002, etc.)
but all points are saved in the object.
2. In the provider we decided on a different color (red) for only the first 100 points.
[For these points, we populate the color array with red – only for the suitable indexes and the others with the original color]

In practice – after moving the graph, the first 100 dots are always red

We expect – after moving the graph the number of red dots decreased respectively. (So ​​that when the graph shows a timeline of 100-1100 – no red dots are visible at all)

In the debugging we saw that the color array was compatible with the data series.

Thank you

  • You must to post comments
0
0

Hi,

Can anyone answer please?

Thanks

  • You must to post comments
0
0

Hi Natali,

I am sorry for the late reply. Thank you for your answer and for the sample project.

I can suggest using PointMetadata in this case. It will allow you to store colour for every data point in the metadata. Please take a look at the corresponding documentation:
https://www.scichart.com/documentation/v5.x/webframe.html#DataSeries%20PointMetadata%20API.html

And then in PaletteProvider, you will receive points with their respective colours.

Please take a look at our “HeatmapMetaData” example:
https://www.scichart.com/example/wpf-chart-example-heatmap-metadata-chart/

And “Series With Metadata” example for more info:
https://www.scichart.com/example/wpf-chart-example-series-with-metadata/

Hope this helps.

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies