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!

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.

1
0

Hello everybody,

my project is very similar to “Quad Left-Right Y-Axes”-Example. If you have a look at this, the Gridlines only math the Left Axis 1. All other Axes have their Major/Minor Ticks randomly spread. It’s not easy to see fast what value has another series then the first because the Gridlines simply dont match.

Is there a way to have all the Major/Minor Ticks Aligned to the Left Axis 1 ones? (i attached a picture which it should look like) But the Series don’t have the same Range. So the Major steps should only match in Grid, not in value (except 0 should be on one line).

I hope you understand my problem.

thx in advance for help

PS: i use full dynamic MVVM approach, the only code in View is ->

<s:SciChartSurface
Style="{StaticResource SciChartSurfaceStyle}"
GridLinesPanelStyle="{StaticResource GridLinesPanelStyle}"
ChartModifier="{Binding chartModifier}"
SeriesSource="{Binding seriesSource}"
YAxes="{Binding yAxes}"
XAxes="{Binding xAxes}"
Annotations="{Binding annotations}"
>
</s:SciChartSurface>

Images
  • You must to post comments
0
0

Hi Michael,

In multiple axis scenarios, only one axis is allowed to draw gridlines. This is called the primary axis. Typically it is the first axis in the AxisCollection, but you can also set it like this:

<s:SciChartSurface>
   <s:SciChartSurface.YAxes>
      <s:NumericAxis />
      <s:NumericAxis Id="SecondaryAxis" IsPrimaryAxis="True"/>
      <s:NumericAxis Id="TertiaryAxis"/>
   </s:SciChartSurface.YAxes>
</s:SciChartSurface>

Each Axis decides its own VisibleRange and Tick spacing independently, based on the data you have on the axis. If you want to override this, you will need to

  1. set the MajorDelta / MinorDelta properties to be the same
  2. Or, set the Axis.VisibleRanges to be the same
  3. Or, have full control over the axis tick generation using our TickProvider API

Hope this helps explain how our Axes work. If you require further info, please comment on this post.

Best regards,
Andrew

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.