SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components

0 votes

Has anyone ever encountered this problem?
Could you give me a help? How to solve this problem?
The app didn’t run in the method of ‘getStrokeColors()’, when I debugged.

public class BubbleChartFragment extends ExampleBaseFragment {

    FastBubbleRenderableSeries mRSeries = sciChartBuilder.newBubbleSeries()
                    .withZScaleFactor(zScaleFactor / 10f)
                    .withBubbleBrushStyle(new SolidBrushStyle(0xffff0000))
                    .withStrokeStyle(0xff00ff00, 20f)
                    .withPaletteProvider(new StrokePaletteProvider())

    private class StrokePaletteProvider extends PaletteProviderBase<FastBubbleRenderableSeries> implements IStrokePaletteProvider {
            private final IntegerValues colors = new IntegerValues();
            private final int[] desiredColors = new int[]{0xFF00FF00, 0xFF0000FF};

            protected StrokePaletteProvider() {

            public void update() {
                final BubbleRenderPassData currentRenderPassData = (BubbleRenderPassData) renderableSeries.getCurrentRenderPassData();

                final int size = currentRenderPassData.pointsCount();

                final int[] colorsArray = colors.getItemsArray();
                final int[] indices = currentRenderPassData.indices.getItemsArray();
                for (int i = 0; i < size; i++) {
                    final int index = indices[i];
                    colorsArray[i] = desiredColors[index % 2];


            public IntegerValues getStrokeColors() {
                return colors;
  • SiYuan Ou asked 2 years ago
  • last active 2 years ago
0 votes
0 answers


If I create a bubble chart with auto x-range and keep appending bubbles (so the xrange grows over time to show all the data), after a while some of the bubbles will start to flash on and off. Its as though if they are centred between pixels then the whole bubble doesn’t get drawn.

Any ideas?


  • F W asked 6 years ago
Showing 2 results
This template supports the sidebar's widgets. Add one or use Full Width layout.