Hi, Sadananda -
I don't believe I've ever used a DataWindow graph outside of a classroom setting. However, I see in the PB Help that the Axis MinimumValue and MaximumValue properties can be an expression.
As a possible workaround, maybe add four numeric retrieval argument values to the DataWindow (not to be used in the data retrieval) named, say as "XAxisMin", "XAxisMax", "YAxisMin" & "YAxisMax". Then via Edit Source if you have to, replace each of these hard-coded values with an expression that is simply the appropriate retrieval argument value, for example:
... MaximumValue="4000~tXAxisMin" ...
The value preceding the tab character is the property's default value. The expression comes after the tab character.
This should allow you to dynamically set the axis Min/Max values via retrieval arguments. Maybe it's not an ideal solution, but I hope it helps!
I'm sure you have already tried passing in the VALUES as parameters, and I'm guessing that failed.
It might be possible to get the DW syntax, make your VALUE changes inthe syntax directly, and then re-import the DW into the PBL. That might work for you where dot notation and parameters have failed.
Olan
even this fails:
I introduced two Computed Field controls y_max_plus and y_min_minus.
Afterwards I used menu item "Edit Source" and changed the source of the DataWindow in the following way:
"values.maximumvalue="y_max_plus" values.minimumvalue="y_min_minus"".
I exported the DW, deleted it, closed PowerBuilder (Professional Edition Version 2019 R2 Build 2353), opened it again and reimported the DW.
But whenever savíng the DW again in the painter (!), values.maximumvalue="100" values.minimumvalue="0" are set again.
Konrad