Pre loader

How to put annotations with underlined font in scichart library?

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

I hope you can help me I have managed to change the font color, size, but I do not know how to put the annotation with underlined font, who could give me a clue please. I would like to get something like what is shown in the image I attached. Thanks in advance.

Version
V1 SDK
Images
  • You must to post comments
0
0

Many thanks for the prompt response, excellent service.

  • You must to post comments
0
0

Hi Julio,

Have you tried to change tick label and title style for axis. You can specify custom Typeface when you create font style and then just assign it for axis. Also you can apply the same style for TextAnnotation. Here is a code sample:

    Typeface typeface = Typeface.createFromFile(<path to font>);
    final FontStyle style = new FontStyle(typeface, 20, Color.BLACK);
    final IAxis axis = new NumericAxis(getActivity());
    axis.setTitleStyle(style);
    axis.setTickLabelStyle(style);


    TextAnnotation annotation = new TextAnnotation(getActivity());
    annotation.setFontStyle(style);

Is this suitable for your needs?

Best regards,
Yura

  • You must to post comments
Showing 2 results
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