From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Get Axis Interval in Auto Mode

Hello,

 

I am making a graph where the axes' MajorDivisions.Mode is Auto. How do I get the number of tick marks that have been produced on the axes when the graph is filled with data and loaded?

 

Thanks,

Kelly

0 Kudos
Message 1 of 2
(2,197 Views)

The generated division values are not directly accessible. To access them, you could create a custom RangeDivisionsMode implementation that calls Auto and saves the result to a property before returning, so that the application can access it.

 

What do you plan to do with the divisions? Depending on your goal, there may be a simpler way to accomplish it.

~ Paul H
0 Kudos
Message 2 of 2
(2,167 Views)