你好,
我正在嘗試使用圖形生成器繪製一些數據,其中序號和響應繪製在 X 和 Y 上。

我可以透過嵌套 X 軸獲得接近我想要的結果,但是我無法透過序號進行繪圖。

有什麼解決辦法嗎?
您可以建立新的列「設計 + 批次」並將其用於 X 群組。
另外,如果只使用 X 軸,為什麼不能使用 serialnr 繪圖?我可以從這裡出發

透過將我的 x 組移動到 x 軸

謝謝 jthi,當我將序號從連續改為序數後,你的第二個解就很好地運作了。
嘿@HarriBradbeer
這是一個腳本,它將組合您在圖形產生器的列列錶框中選擇的列或您在實際資料表中選擇的列。您可以將其建立的「組合篩選器」欄位放入群組 X 中,以便將列中的群組值作為群組 X 軸的層級。如果您選擇新列並重新執行腳本,它將更新「組合過濾器」列值。
我實際上將其作為按鈕添加到我的工具列以使其更加簡化。
希望有幫助!
史蒂夫
Names Default To Here( 1 );
dt=Current Data Table();
wait(0);
curWindow = current window() << Get Window Title; //get window title to curWindow variable
//use Try to check if curWindow is datatable with << Get name or N Rows
Try(
//Show(N Rows(Datatable(curWindow))),
Datatable(curWindow) << Get Name;
test=0, //datatable
test=1; //not datatable
);
if( test==1,
dt << begin Data Update;
obj=Current Report()["Graph Builder"]<< get scriptable object;
cnames = (obj<< XPath("//OutlineBox[text()='Graph Builder']//ListBoxBox")) << get selected;
cnames=cnames[1];
dt << Select Columns( eval(cnames) );
selcols=dt << Get selected Columns();
/* Obtain a list of all numeric column names as strings. */
numCols = dt << Get Column Names();
ct=0;
/* Loop through each numeric column. */
For( i = 1, i <=N Items( numCols ) , i++,
col name = Column( i ) << Get Name;
if( col name=="Combined Filter",
ct=1;
cti=i;
break();
)
);
dt << Combine Columns(
delimiter( "," ),
Columns( eval(selcols) ),
Multiple Response( 0 ),
Column Name( "Combined" )
);
dt << Clear Column Selection();
column(dt,"Combined")<< Set Selected( 1 );
dt << Move Selected Columns( To last );
if(ct==0,
dt<<NEW column=""></NEW>