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 Stackoverflow.com where you can earn rep for your questions!

0
0

Hi,

I’m in the process of evaluating SciChart and had a couple of questions. I’m using SciChart to display realtime OHLC values for a trading application. I’m using the CategoryDateTimeAxis for the X Axis.

My questions are
1. The XAxisDragModifier doesn’t seem to work with the CategoryDateTimeAxis. It does seem to work with the DateTime Axis. Is there something different I need to do for it work with the CategoryDateTimeAxis ?

  1. Is it possible to anchor a newly added point to the same area of the chart ie..the chart would scroll to the left after each data point is added so that the new data point is still located in the same area of the screen.

Please let me know.
Thanks,
Deepak

  • You must to post comments
0
0

Hello Deepak,

We have an example here which uses the XAxisDragModifier with the CategoryDateTimeAxis. Try playing with the ClipModeX property since this affects the behaviour of the modifier.

Secondly yes, you can update the VisibleRange manually as in this example. Click ‘Start Realtime’ in our RealTimeStockCharts demo as this does what you are asking for (it keeps the latest added point in the same position). This is achieved in the ViewModel where we update VisibleRange when points are appended.

I hope this helps!

Best regards,
Andrew

  • deepakb1
    Thanks Andrew, I was able to use ClipModeX to drag the chart along the X Axis.I did take a look at the RealTimeStockCharts, it looks like the XAxisVisibleRange is a property of the SciStockChart. Is there a similar property for the SciChart Surface ?
  • Andrew
    Yes there is, you will need to bind the ScichartSurface.XAxis.VisibleRange to your viewmodel. We use this technique to update VisibleRange from the ViewModel in the ECG Monitor demo.Best regards, Andrew
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.