Pre loader

Load Sprite Dynamically in PaletteProvider

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,
I want to implement a chart that represent currency changed rate, so that the chart will show a rise with a green point and a fall with a red point.

in the image I’ve uploaded I’ve used Custom PaletteProvider to manipulate the colors accordingly.

what I want to implement is instead of coloring the Point (Ellipse) I want to load an Image.
the closest i’ve got is to load a single image to all the points, without theme changing (red or green) accordingly.

I did managed to implement that exact behavior in iOS.

how could I implement a dynamically changing Sprits in a PaletteProvider ?

Thanks in advance…

Version
2.0.0.1654
Images
  • You must to post comments
0
0

Hi Alon,

Thanks for your inquiry.

I’m afraid it isn’t possible to provide images via PaletteProvider API. For now PaletteProvider allows to provide single int value with color for each point and it isn’t possible to to pass sprites without customization of renderable series code.

I’m going to create a feature request in our bug tracker

Best regards,
Yura

  • You must to post comments
0
0

Hey Yura,
Thank you for your comment.

for now I’ve added images as PointMarkers for several ScatterRenderableSeries, is there a way to change the PointMarker Size after the first render ?

I’ve tried to change the size like so :

fun changeRenderableSeriesSize(size: Int) { CustomPointMaker.setSize(size, size) }

but it did not changed the size…

is there a way to do so ?

  • Yura Khariton
    I tried to use setSize() with one of our default point marker implementations and it worked. May I ask which point marker do you use? Can you post code which reproduces this issue?
  • You must to post comments
Showing 2 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