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

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.

Answered
0
0

I am trying to integrate custom symbols from AnnotationsAreEasyFragment to MultiPaneStockChartsFragment but the symbols are not visible on price chart of MultiPane… can anyone please help me out with how to give X and Y axis in multipane price chart

Version
2.3
  • You must to post comments
Best Answer
1
0

Hi Ghousia,

You just need to ensure that you provide correct XAxisId and YAxisId for your annotations because in Multi-Pane Stock Charts example we use custom axis id in price whart. It is set in this line:

 this.yAxis = builder.newNumericAxis()
                .withAxisId(title)
                ....
                .build();

and title value is passed through constructor of BasePaneModel class. For price chart it has next value:

private static final String PRICES = "Prices";

So to add custom annotation from Annotation are Easy example you just need to provide same YAxisId for this annotation and add it into AnnotationCollection of the chart:

 Collections.addAll(annotations, builder.newCustomAnnotation().withPosition(xPosition, yPosition).withContent(R.layout.example_custom_annotation_view).withYAxisId(PRICES).build());

Hope this will help you!

Best regards,
Yura

  • Ghousia Begum
    Hi Yura,Yes it worked for me, Thank you very much!
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.