Pre loader

How to de-gradient bubbles in a bubble chart

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

I want the bubbles in my bubble chart to be one color with no gradient, and I also want to color the border line. How can I do this?

Version
6.6
  • You must to post comments
1
0

I found the answer on my own. I solved it by using PaletteProvider and IPointMarkerPaletteProvider.

public class CustomPaletteProvider : IPointMarkerPaletteProvider
{
private XyzDataSeries<DateTime, double, double> _theSourceData;

public void OnBeginSeriesDraw(IRenderableSeries series)
{
_theSourceData = (XyzDataSeries<DateTime, double, double>)series.DataSeries;
}

public PointPaletteInfo? OverridePointMarker(
IRenderableSeries rSeries,
int index,
IPointMetadata metadata)
{
PointPaletteInfo info = new PointPaletteInfo();
info.Stroke = Colors.Gray;

return info;
}
}

  • Lex
    • Lex
    • 7 months ago
    Hi Sungchul, Please accept my apologies for the late reply. We’re glad you’ve found a solution! We had a quick look at the provided details, and we can suggest a small optimization for this approach. Instead of creating a new PointPaletteInfo for each point you could create a single instance and return it instead. Additionally, we have logged this in our tracking system and will think of the ways to improve this in SciChartSources With best regards, Lex SciChart Technical Support Engineer
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.