Pre loader

Custom annotations not getting displayed


Hi Yura,

Thank you for the answer here

I already did tried that way before also but was unable to display the custom annotations, even though I give the YAxisId the symbols are not visible on the chart…

I would be really grateful if you could help me out with this please

  • You must to post comments
Best Answer

Hi Ghousia,

Did you set some content for your custom annotation because by default content is empty and annotation doesn’t display anything:

CustomAnnotation annotation = builder.newCustomAnnotation()
       .withContent(R.layout.example_custom_annotation_view) // set layout from XML as content
       // some other code

I tried to use your code from your previous question and after I set correct YAxisId and content for custom annotation it worked.

Best regards,

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies