系列數量你好
在堆疊過程中,我想讓Number of Series成為一個可以在之前計算的變量。它說,這應該是積極的。有沒有解決方法?
//堆疊數據
數據表(“Sample_data2”)<<堆棧(
列(ColList),
源標籤列(“標籤”),
堆疊數據列(“數據”),
系列數(j / 12),
鄰近的
);
/ *:
系列數應為正整數
回复:系列數量您必須評估您用於設置系列數字的方程
// Stack the data
Data Table( "Sample_data2" ) << Stack(
columns( ColList ),
Source Label Column( "Label" ),
Stacked Data Column( "Data" ),
Number of Series(eval( j/12 ) ),
Contiguous
);
結果值必須是整數,這意味著變量“j”的值必須是12,24,36等