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!

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.

1
0

Hi,

Am trying to limit the depth in which the user can zoom into and out of the graph. I came across the property minimalZoomConstrain in the header file and also the documentation and had attempted to use it.

The axis in question is a DateTimeAxis and I would want to limit the zoom in depth to 30 seconds and the zoom out the about 3 months. I understand that the type it takes is the GenericType, where I will have to use the SCIGeneric(x) to assign the value, but what value x am I required to use in this case?

I’ve tried the values ’30′(assuming it takes NSTimeInterval) and even attempted to pass in a NSDate value but nothing seems to work.

Thank you.

Version
1.1
  • You must to post comments
1
0

Hi,

I updated to v1.2.0 and added the maximal zoom constraint, and it works now.

For those wondering, I passed in the duration in NSTimeInterval, so if I’m looking for a a minimum zoom depth of 30s, I’d use SCIGeneric(30) and if I’m looking for a maximum zoom depth of 3 months (appx 7776000s), I’d use SCIGeneric(7776000).

Devs, please do correct me if am wrong in that.

Cheers!

  • Andrew
    Thanks Elle for the feedback! :) -Andrew
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.