Hello,
I am launching a graph builder and data filter from a dashboard. The graph is date on the x axis and count on the y axis. When I filter the date, the data outside of the date range disappears from the graph, but the graph does not autoscale the x axis to match the dates within the filtered range (instead, the x axis date range is the same as before filtering the date range).
I know that I can open the data table, then go to column properties, then axis, then removed the min and max, and then it works, but I need the autoscaling to happen automatically.
The graph builder script looks like this:
SPC = Open("C:\blahblahblah.csv",invisible);
column(SPC,"blah")<<data type(Numeric)<<Modeling Type(Continuous)<<Format(Best,1);
column(SPC,"blah2")<<data type(Numeric)<<Modeling Type(Continuous)<<Format(Best,1);
plot_box=vlistbox(
SPC << Graph Builder(
Size( 1372, 867 ),
Show Control Panel( 0 ),
Automatic Recalc( 1 ),
Auto Stretching( 0 ),
Variables( X( :Date time ran ), Y( :blah ), Y( :blah2 ), Overlay( :blah3 ) ),
Elements(
Position( 1, 1 ),
Points( X, Y, Legend( 1 ), Jitter( 1 ) ),
),
Elements(
Position( 1, 2 ),
Points( X, Y, Legend( 4 ), Jitter( 1 ) ),
),
SendToReport(
Dispatch(
{},
"Date time ran",
ScaleBox,
{Interval( "Day" ),
Inc( 3 ), Minor Ticks( 1 ),
(then a bunch of reference lines)
...
Could someone please advise me?
Thank you.