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 Stackoverflow.com where you can earn rep for your questions!

Answered
0
0

Hi,

I’m having difficulties understanding the behaviour of a graph with the following axes:

<s:SciChartSurface.XAxis>
                            <s:LogarithmicNumericAxis DrawMajorBands="False"   
                                                      LogarithmicBase="10"
                                                      VisibleRange="0.01,5" 
                                                      DrawMinorGridLines="False"
                                                      DrawMajorGridLines="False">
                            </s:LogarithmicNumericAxis>
                        </s:SciChartSurface.XAxis>


                        <s:SciChartSurface.YAxis>
                            <s:NumericAxis  DrawMinorGridLines="False" 
                                            DrawMajorGridLines="False" 
                                            AxisAlignment="Left"
                                            VisibleRange="{Binding FftDroiteGaucheYAxisRange, UpdateSourceTrigger=PropertyChanged}"/>
                        </s:SciChartSurface.YAxis>

With XAxis VisibleRange set to “0.01,5” the graph looks like this:
enter image description here

When I change it to a bigger range say “0.01,11” or more FOR THE SAME DATA it gets deformed and looks like:
enter image description here

I tried removing VisibleRange in YAXis but it doesn’t seem to work. Please help.

Images
  • You must to post comments
Best Answer
0
0

Hi Kilosa,

For graphs with XAxis Type = LogarithmicNumericAxis, you need to set ResamplingMode.None on the FastLineRenderableSeries. This is because the X-Data spacing is determined by the axis, not the data, so it is difficult to accurately predict data distribution and choose the correct resampling algorithm.

This is a case we should detect automatically with ResamplingMode.Auto so I will file a bug report at the same time.

Let me know if this helps,

Best regards,
Andrew

  • Kilosa Magali
    Worked perfectly, Thanks Andrew.
  • Andrew
    you’re very welcome! If there’s anything else we can do to help, just let me know. Best regards,
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.