Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Scatter Graph Range is Read Only?

I'm using the Scatter Graph from the Measurement Studio .NET tools. I'd like to programmatically change the X Scale, but when I try, I get a build error, indicating that the Range.Maximum is read only.
I am able to change this in the Properties page, but it does not meet my need to change the scale on the fly.
Any help would be greatly appreciated.
Best regards,
Dennis
0 Kudos
Message 1 of 3
(3,154 Views)
You have to specify the minimum and the maximum at the same time and create a new instance of the Range class. The Minimum and Maximum properties of Range are read-only. For example:


axis.Range = new Range(0, 100);


- Elton
0 Kudos
Message 2 of 3
(3,149 Views)


@db_from_mn wrote:
I'm using the Scatter Graph from the Measurement Studio .NET tools. I'd like to programmatically change the X Scale, but when I try, I get a build error, indicating that the Range.Maximum is read only.
I am able to change this in the Properties page, but it does not meet my need to change the scale on the fly.
Any help would be greatly appreciated.
Best regards,
Dennis


Hello Elton,
Thanks. I'll give that a try.
Dennis
0 Kudos
Message 3 of 3
(3,145 Views)