SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & 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.

0
0

Dear all,

I have a data series which I express in one graph using Numeric axis on X and Y
I need to display the LOg of that series.

Question :

Does the LogarithmicNumericAxis process the log(x) automatically or it is just rendering the Y as this scale ?

What I mead is that if I need to display the Log on a second graph of the same serie, do I have to provide the log already in the series of does the LogarithmicNumericAxis does it automatically ?

regards

Version
4
  • sc sc
    I find it out
  • You must to post comments
0
0

LogarithmicNumericAxis transforms the scaling of the data in the Y-direction as well as displaying the axis ticks in a logarithmic scale.

For example, if you have data with Y-Values 0,10,100,1000,10000 then a numeric axis will show these as increasing exponentially but a logarithmic axis will show them increasing linearly.

You can see how the two axis behave in our LogarithmicYAxis example, which allows you to switch from Numeric and Logarithmic axis without changing the data.

Best regards,
Andrew

  • You must to post comments
0
0

Thanks for your precision Andrew.
I have tried to add the Logarithm scale to my Y axes as below :

<s:SciChartSurface.YAxis>
            <s:LogarithmicNumericAxisForMvvm x:Name="_yAxisLog"
                               AxisAlignment="Left"
                               DrawMajorBands="{Binding ShowChartAxisMajorBand,Converter={StaticResource VisibilityConverter}}"
                               DrawMajorGridLines="{Binding ShowChartMajorGridLines,Converter={StaticResource VisibilityConverter}}"
                               DrawMinorGridLines="{Binding ShowChartMinorGridLines,Converter={StaticResource VisibilityConverter}}"
                               DrawMajorTicks="{Binding ShowChartMajorTicks,Converter={StaticResource VisibilityConverter}}"
                               DrawMinorTicks="{Binding ShowChartMinorTicks,Converter={StaticResource VisibilityConverter}}"
                               DrawLabels="{Binding ShowChartLabels,Converter={StaticResource VisibilityConverter}}"
                               TickLabelStyle="{StaticResource LeftAxisLabelStyle}"
                               AxisBandsFill="{DynamicResource SilverBrush}" 
                               />
        </s:SciChartSurface.YAxis>

When I do this and check my data series rendering, I have the feeling that the chart is not scaling property the data in order to have them visible all in the viewport. See below picture, data are completely at the top where we can see only the part of it, I was expecting that the chart would scale the Y axis to get the data visible and center to the view port at least.

Any idea what I do wrong ?

Regards
Serge

Images
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.