Hi,
Is it possible to add timespan Axis?
- basalode asked 11 years ago
- You must login to post comments
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
- Yuriy Zadereckiy answered 11 years ago
- last edited 9 years ago
- You must login to post comments
Please login first to submit.