thank you for answer !
Additional questions
image is attached
q1. last data only marker
q2. vertical dotted line (with rolloverModifier)
- young kwang kwon asked 2 years ago
- last edited 2 years ago
- You must login to post comments
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
- Yura Khariton answered 2 years ago
- You must login to post comments
Please login first to submit.