你好,
我正在嘗試創建一個帶有 2 y 軸的條形圖。 但每當我將一列向右移動以創建第二個軸時,條形幾乎是嵌套的,我無法將它們分開。


我希望條形像第一張圖中那樣是分開的,但有兩個不同的軸。
似乎是我缺少的一些非常基本的東西 - 它是什麼?
謝謝,
埃蘭
謝謝,
我了解具有不同 y 尺度的圖表的潛在問題,但顯示數據的方向很有幫助,而且我不確定將信息放在不同的圖表上總是更好。
感謝您提供的解決方案 - 它確實完美地解決了這個問題。
最好的,
埃蘭
你好@eranse ,
我猜你想要第二個軸,因為第 3 列的大小比第 2 列和第 4 列大得多。 然而,在我看來,兩軸條形圖充滿了誤解的風險:值為 90 的條形圖與高度大致相同且值為 340 的條形圖相鄰,令人感到不和諧。我認為兩個軸圖對於用線條顯示數據趨勢很有用,即使如此,前提是軸的顏色與曲線相匹配等。
由於 GraphBuilder 平台無法生成您需要的內容,我建議使用替代圖

Graph Builder(
Size( 763, 517 ),
Show Control Panel( 0 ),
Graph Spacing( 10 ),
Variables( X( :Column 1 ), Y( :Column 4 ), Y( :Column 2 ), Y( :Column 3 ) ),
Elements(
Position( 1, 1 ),
Bar( X, Y, Legend( 9 ), Label( "Label by Value" ) )
),
Elements(
Position( 1, 2 ),
Bar( X, Y, Legend( 8 ), Label( "Label by Value" ) )
),
Elements(
Position( 1, 3 ),
Bar( X, Y, Legend( 7 ), Label( "Label by Value" ) )
),
SendToReport(
Dispatch( {}, "Graph Builder", OutlineBox, {Select} ),
Dispatch( {}, "Column 4", ScaleBox, {Label Row( Show Major Grid( 1 ) )} ),
Dispatch( {}, "Column 2", ScaleBox, {Label Row( Show Major Grid( 1 ) )} ),
Dispatch( {}, "Column 3", ScaleBox, {Label Row( Show Major Grid( 1 ) )} ),
Dispatch(
{},
"Y title",
TextEditBox,
{Set Font Size( 12 ), Set Font Style( "Bold" ), Font Color( 53 )}
),
Dispatch(
{},
"Y 1 title",
TextEditBox,
{Set Font Size( 12 ), Set Font Style( "Bold" ), Font Color( 19 )}
),
Dispatch(
{},
"Y 2 title",
TextEditBox,
{Set Font Size( 12 ), Set Font Style( "Bold" ), Font Color( 20 )}
),
Dispatch(
{},
"400",
LegendBox,
{Legend Position( {9, [1], 8, [0], 7, [2]} ), Position( {1, 0, 2} )}
)
)
)
但是,我可以創建您想要的圖表(我不喜歡)。 它需要重組您的數據。 請參閱隨附的創建數據表和該圖的日誌。

“僅僅因為你可以,並不意味著你應該這樣做。”