我想在 Altair 中绘制折线图(带有连接的点标记)。我知道如何更改线宽(通过设置strokeWidth),但我不知道如何更改这些点标记的大小。下面是我的代码:
altair.Chart(ys.reset_index()).mark_line(point=True, strokeWidth=5).encode(
x="Time:T",
y="HL:Q",
color=altair.Color(
"Time Series Component",
scale=altair.Scale(scheme="dark2")
),
tooltip=["Time Series Component", "Time", "HL"]
).interactive().properties(
width=1000,
height=500
).configure_axis(
labelFontSize=20,
titleFontSize=20
).configure_legend(
orient="right"
)
Run Code Online (Sandbox Code Playgroud)