
它看起來幾乎像藝術 - 但它是數據!
資料來源: Fraunhofer ISE:德國太陽能/風能/化石能源發電每箱 15 公尺至幾個小時 *)。
在 Y 軸上,您可以看到化石發電,在 X 軸上,您可以看到風能(左)和太陽能(右)之間的分割。
透過右鍵 - 新公式列/日期時間/一年中的某一天

我們可以添加一些顏色 -使用像色調這樣的循環方案。
預設色調不可用,但很容易產生:
Color Theme(
{"Hue", {"Continuous", "Categorical", "Chromatic"}, {{248, 10, 254}, {0,
0, 255}, {0, 127, 255}, {0, 255, 255}, {127, 255, 127}, {255, 255, 0},
{255, 127, 0}, {255, 0, 0}, {254, 5, 235}, Missing( {120, 120, 124} )}}
)
添加一些透明度後,人們可以感受到數據點的密度:

透明度也應用於圖例,這使得它難以閱讀。
要解決此問題,只需添加另一列作為“顏色”並將其用於圖例......並隱藏原始列。

總共:
Graph Builder(
Transform Column( "Day of Year 2", Formula( Day Of Year( :date ) ) ),
Transform Column( "Day of Year", Formula( Day Of Year( :date ) ) ),
Transform Column( "Year", Nominal, Formula( Year( :date ) ) ),
Transform Column(
"fossile ->",
Formula(
Sum( :Braunkohle, :Steinkohle, :Öl, :Kohlegas, :Erdgas ) / :Last // Last = consumption
)
),
Transform Column( "dummy", Formula( . ) ),
Transform Column(
"<- wind / solar ->",
Formula( (:Solar - (:Wind Offshore + :Wind Onshore)) / :Last)
),
Variables(
X( :"<- wind / solar ->"n ),
X( :dummy, Position( 1 ) ),
Y( :"fossile ->"n ),
Wrap( :Year ),
Color( :Day of Year ),
Color( :Day of Year 2 )
),
Elements(
Points( X( 1 ), Y, Legend( 1 ) ),
Points( X( 2 ), Y, Legend( 2 ) )
),
SendToReport(
Dispatch( {}, "400", ScaleBox,
{Legend Model(
1,
Properties(
0,
{Transparency( 0.05 ),
gradient(
{Color Theme(
{"Hue_3", {"Continuous", "Categorical",
"Chromatic"}, {{248, 10, 254}, {0, 0, 255}, {0,
127, 255}, {0, 255, 255}, {127, 255, 127}, {255,
255, 0}, {255, 127, 0}, {255, 0, 0}, {254, 5, 235
}, Missing( {120, 120, 124} )}}
), Scale Values( [0 365] ), N Labels( 2 )}
)},
Item ID( "Day of Year", 1 )
),
), Legend Model(
2,
Properties(
0,
{gradient(
{Color Theme(
{"Hue", {"Continuous", "Categorical",
"Chromatic"}, {{248, 10, 254}, {0, 0, 255}, {0,
127, 255}, {0, 255, 255}, {127, 255, 127}, {255,
255, 0}, {255, 127, 0}, {255, 0, 0}, {254, 5, 235
}, Missing( {120, 120, 124} )}}
), Scale Values( [0 365] ), N Labels( 2 ),
Label Format( "Fixed Dec", 12, 0 )}
)},
Item ID( "Day of Year", 1 )
)
)}
)
)
);