Pre loader

TimeSpanAxis

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

Hi,

Is it possible to add timespan Axis?

  • You must to post comments
0
0

Hi there,

SciChart now supports a TimeSpanAxis out of the box. To include it on your chart surface, please use the following code:

<s:SciChartSurface>
    <s:SciChartSurface.XAxis>
        <s:TimeSpanAxis/>
    </s:SciChartSurface.XAxis>

    <s:SciChartSurface.YAxis>
        <s:NumericAxis/>
    </s:SciChartSurface.YAxis>
</s:SciChartSurface>

Also, you will need to declare DataSeries with a TimeSpan for X-type:

var dataSeries = new XyDataSeries<TimeSpan, double>();
dataSeries.Append(TimeSpan.FromSeconds(1), 123);
dataSeries.Append(TimeSpan.FromSeconds(2), 456);

Best regards,
Yuriy

  • 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