Pre loader

Remove x axis line but keep label

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

Hi,

I am trying to add labels to the x axis but I don’t want the axis line to be visible. numericAxis.drawLabels = true enables the x axis line also. Is there a way to disable it?

Version
2.2
  • You must to post comments
0
0

Hi Vidya,

Have you tried to set DrawMinorTicks and DrawMajorTicks to false?

    numericAxis.setDrawMinorTicks(false);
    numericAxis.setDrawMajorTicks(false);

Best regards,
Yura

  • Vidya Sagar Mohanraj
    Yes. I have tried that. It disables the gridlines but it doesn’t remove the line that the labels rest on. I am talking about the line adjustment to the labels.(fyi this not the tick lines)
  • Vidya Sagar Mohanraj
    achieved it by using a custom BottomAlignmentInnerAxisLayoutStrategy
  • 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