我查看了腳本幫助部分和整個社區,但沒有找到解決我的問題的方法,所以希望有人能提供幫助。 我有一個包含兩條趨勢線和條形圖的圖表,並且想要標記每個點的值,但是當我設置標籤時,兩個值都顯示在每條趨勢線上,我不知道如何分隔標籤。 我嘗試堆疊標記的列以使用疊加將它們分隔在圖表上,但我已經為條形圖設置了不同的疊加,並且無法弄清楚如何使用第二個疊加來分隔標記的點。 我在這裡複製了我的代碼和我正在使用的圖表的圖片,並附上了我正在使用數據表運行的腳本。 非常感謝任何幫助或見解。

Data Table ("Graph Subset"):Month EQ Hrs << Set labelled;
Data Table ("Graph Subset"):Total Available Hrs << Set labelled;
Data Table ("Graph Subset") << select where( :Month == 1 | :Month == 2 |:Month == 3 | :Month == 4 | :Month == 5 | :Month == 6 | :Month == 7 | :Month == 8 | :Month == 9 | :Month == 10 | :Month == 11 | :Month == 12) << label;Graph Builder(
Size( 1352, 731 ),
Variables(
X( :Month Name ),
Y( :Total EQ Hours ),
Y( :Month EQ Hrs, Position( 1 ) ),
Y( :Total Available Hrs, Position( 1 ), Side( "Right" ) ),
Y( :Available Hrs, Position( 1 ), Side( "Right" ) ),
Group X( :Year ),
Overlay( :ePlexProcess )
),
Elements(
Bar(
X,
Y( 1 ),
Legend( 4 ),
Bar Style( "Stacked" ),
Summary Statistic( "Sum" ),
Label( "Label by Value" )
),
Line( X, Y( 1 ), Overlay( 0 ), Legend( 5 ), Summary Statistic( "Sum" ) ),
Points(
X,
Y( 1 ),
Overlay( 0 ),
Legend( 6 ),
Summary Statistic( "Sum" ),
Jitter( "None" )
),
Line( X, Y( 4 ), Overlay( 0 ), Legend( 5 ), Summary Statistic( "Sum" ) ),
Points(
X,
Y( 3 ),
Overlay( 0 ),
Legend( 6 ),
Summary Statistic( "Mean" ),
Jitter( "None" )
)
),
SendToReport(
Dispatch( {"Bar"}, "", OutlineBox, {Close( 0 )} ),
Dispatch( {"Line"}, "", OutlineBox, {Close( 0 )} ),
Dispatch( {"Line (right)"}, "", OutlineBox, {Close( 0 )} ),
Dispatch( {}, "Total EQ Hours", ScaleBox, {Max( 4500 )} ),
Dispatch(
{},
"Total Available Hrs",
ScaleBox,
{Min( 0 ), Max( 24000 ), Inc( 5000 ), Minor Ticks( 2 ),
Label Row(
{Show Major Grid( 1 ), Show Minor Grid( 1 ), Show Minor Labels( 1 ),
Set Font Size( 12 )}
)}
),
Dispatch(
{},
"400",
ScaleBox,
{Legend Model( 6, Base( 0, 0, 0, Item ID( "Sum(Total EQ Hours)", 1 ) ) )
}
),
Dispatch(
{},
"400",
LegendBox,
{Legend Position(
{4, [0, 1, 2, 3, 4, 5], 5, [7], 6, [9], 5, [7], 6, [9]}
), Position( {0, 1, 2, 3, 4, 5, 7, 9, 7, 9} )}
)
)
);