Pre loader

Is it possible to display a TimeSpan axis in a logarithmic scale?

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 have a need to display a group of data sets in one chart, but because the duration of the data sets vary quite a bit I’d like to have a logarithmic time axis. Has anyone done this before? Thanks in advance!

Version
5.3.0.11954
  • You must to post comments
0
0

Hi Jeramy,

Short answer, no, because TimeSpanAxis is linear, and there is no LogarithmicTimeSpanAxis.

However, you can use the LogarithmicNumericAxis and the LabelProvider feature to format numbers as labels.

For example, imagine your XyDataSeries<double,double> has X-values equal to 1, 2, 3, 4, 5 … and you denote 1 as 1 second.

Now you can use the LabelProvider feature to format these numbers as TimeSpan.FromSeconds(1), TimeSpan.FromSeconds(2) etc…

Please let me know if this helps,

Best regards,
Andrew

  • 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