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 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.


I changed my NumericalAxis to LogarithmicNumericAxis in runtime as below

var yAxis = new LogarithmicNumericAxis
    TextFormatting = "#.#E+0",
    ScientificNotation = ScientificNotation.LogarithmicBase,                                
    GrowBy = new DoubleRange(0.1, 0.1),
    DrawMajorBands = false
yAxis.AxisTitle = chart2d.YAxes[0].AxisTitle;
chart2d.YAxes[0] = yAxis;

I can see my data points are correctly log-scaled but Y-Axis is disappeared and CursorModifier display Y-values as ‘NaN’.
Should I do something more than simply replacing Axis instance to other?
(I already checked a LogAxis example but I can’t use XAML in this case)

  • You must to post comments

Hi there,

You probably need to set a valid VisibleRange on the LogarithmicNumericAxis as well, but I’m not sure.

We actually have an example on switching between Linear and Logarithmic Axis at Runtime in WPF Charts here:

enter image description here

Take a look, it might give you just the idea you need!

Best regards,

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.