LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change the size of a chart in runtime in LV7.1?

Is it impossible to change the size of a chart in runtime in LV7.1? I can only see that the properties width and height is readable. It would be very neat to have these properties writable so one can change the size of for instance charts in run-time.Is it impossible to change the size of a chart in runtime in LV7.1? I can only see that the properties width and height is readable. It would be very neat to have these properties writable so one can change the size of for instance charts in run-time.
 
Regards/Lars
0 Kudos
Message 1 of 10
(4,397 Views)
Try the property Plot Area:Size.
0 Kudos
Message 2 of 10
(4,388 Views)
Try the property Plot Area:Size.
 
OK, without trying it yet, will this change the size of the entire control or just the plot area? I suspect it will just affect the plot area inside the control frame.
Regards/Lars
0 Kudos
Message 3 of 10
(4,366 Views)

Yes, you are right, it has just effect to the plot area.

0 Kudos
Message 4 of 10
(4,362 Views)
Thomas,
 
You wrote,
 
"Yes, you are right, it has just effect to the plot area." (bold added).
 
That is not the case I found. Those properties do change the plot area BUT the rest of the chart adapts around that area so the WHOLE chart re-sizes.
 
See attached.
 
Confused,
 
ben

Message Edited by Ben on 11-09-2005 07:37 AM

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 10
(4,357 Views)

Thanks a lot, I think this will solve my problem.

I hope it works for the other property node as well (I use to extract all the controls on the main FP using property nodes (ref to FP) and save the labels and the refs in two arrays, saved in attributes of that object (GOOP) making it possible to have a method that is used to assign a value to any control by searching for the label in the first array,1D search array, get the index, get the ref from the other array and then use it to assign a value to that specific control).

//LP05

0 Kudos
Message 6 of 10
(4,344 Views)
The Bounds property of a generic front panel object is always read-only.  However, there is always some way to resize the object, or pieces of the object, depending on what it is.  In the case of the graph, the plot area can be resized, but so can the legend.  This is why the generic Bounds property is read-only.  It can depend on several other properties.  Unfortunately, this is somewhat confusing and leads the user into searching the property list for something to resize an object.  It will be there, but you may have to look a bit.
0 Kudos
Message 7 of 10
(4,325 Views)

@ Ben

Perhaps, I should have had to answer a little bit more exacter. It is also true that the whole chart could be resized till a minimum.

I will try to improve my anwers for the future. Smiley Sad

0 Kudos
Message 8 of 10
(4,315 Views)

Ben,

I must admit I'm a little confused too. It may be my failing memory but I thought that once upon a time, the property did only affect the plot area. I don't have access to some of the older versions so I can't test it right now.

Dennis

0 Kudos
Message 9 of 10
(4,313 Views)

In LV6.i it looks like that!

 

0 Kudos
Message 10 of 10
(4,309 Views)