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

0
0

thank you for answer !

Additional questions
image is attached

q1. last data only marker
q2. vertical dotted line (with rolloverModifier)

Version
This version was downloaded on October 19, 2021. It seems to be the latest version
Images
  • You must to post comments
0
0

Hi there,

q1. There are several ways – you can use Annotation API and place annotation at last point ( e.g. CustomAnnotation ). The other ways XyScatterRenderableSeries with single data point ( you can update that data point using updateXXX() method or you can set FifoCapacity = 1 and use appendXXX()
q2. I have modifier our custom rollover example from demo and change next lines:

        UpdateSuspender.using(surface, new Runnable() {
        @Override
        public void run() {
            Collections.addAll(surface.getXAxes(), xAxis);
            Collections.addAll(surface.getYAxes(), yAxis);
            Collections.addAll(surface.getRenderableSeries(), lineRs1, lineRs2);

            final RolloverModifier rolloverModifier = new RolloverModifier();
            Collections.addAll(surface.getChartModifiers(), sciChartBuilder.newModifierGroup().withModifier(rolloverModifier).build());

            rolloverModifier.getVerticalLinePaint().setColor(Color.RED);
            rolloverModifier.getVerticalLinePaint().setPathEffect(new DashPathEffect(new float[] {20, 20}, 0));

            sciChartBuilder.newAnimator(lineRs1).withSweepTransformation().withInterpolator(new DecelerateInterpolator()).withDuration(3000).withStartDelay(350).start();
            sciChartBuilder.newAnimator(lineRs2).withSweepTransformation().withInterpolator(new DecelerateInterpolator()).withDuration(3000).withStartDelay(350).start();
        }
    });

Results are on attached screenshot. Hope this will help you!

Best regards,
Yura

Images
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.