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 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.



Is there any way the X-axis can be expressed as a static time span? I would like to show the last two hours of data at all times (see the attached design). This means that the chart plot should move, but not the X-axis.

Bjørn Terje Svennes

  • You must to post comments

Hmm .. Interesting problem.

Ok try this. Have two XAxes (use our Multiple XAxis feature). Have one with a TimeSpanAxis displaying timespans from 00:00 – 02:00 and use FlipCoordinates = True (this reverses from 02:00 – 00:00). Have this axis visible.

The second axis is the real axis that you append data to. Have this axis either with Visibility=Collapsed, or set DrawLabels, DrawTicks = false.

Let me know if it works!!


  • btsvennes
    Sorry for taking so long. I've been busy working on other projects.I tried your approach and it seems to do the trick very well :-) Thank you very much for your help.Bjørn Terje
  • Andrew
    That's great! Glad it worked :)
  • btsvennes
    A follow up question: Our charts receives data over time, so the visual range is continuously updated. This has effects on zooming since it also changes the visual range. So when the user tries to zoom at a part of the chart, the chart goes back to "normal" when a new sample is received (hence moving the time window). How do you solve this problem? I haven't found any property that can tell me whether the user has zoomed the chart or not.
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.