Pre loader

Space major ticks 1 second apart with DateTimeAxis

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

I’m using a DateTimeAxis and by default major tick lines (and labels) are shown every 1/2 second – this is too busy/crowded for me. How do I change this to show a label every second? I set AutoTicks to false, but am not sure what to do about MajorDelta/MinorDelta when my X value is a DateTime object.

.
.
<s:SciChartSurface.RenderableSeries>
   <s:FastLineRenderableSeries x:Name="PositionSeries" StrokeThickness="2"/>
</s:SciChartSurface.RenderableSeries>

<s:SciChartSurface.XAxis>
   <s:DateTimeAxis x:Name="PositionXAxis" TextFormatting="mm:ss"/>
</s:SciChartSurface.XAxis>
.
.
XyDataSeries<DateTime, double> _positionSeries;
PositionSeries.DataSeries = _positionSeries;
.
.
Version
4.2.2.9777
  • You must to post comments
1
0

Hi Dan,

Thanks for your question. DateTimeAxis and TimeSpanAxis expect MajorDelta, MinorDelta to be of the TimeSpan type.

Hope this helps!

Best regards,
Yuriy

  • Dan Pilat
    Thanks Yuriy that did it.
  • 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