Skip to content

Commit 080cfeb

Browse files
author
Fred Rodrigues
committed
adressing @nickhenden review comments
1 parent 6763424 commit 080cfeb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/afcharts/cookbook/03-plotly-usage.qmd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,7 @@ fig.add_trace(
822822
colorscale=sequential[1:],
823823
zmin=0,
824824
zmax=5,
825+
marker_line_width=0.5,
825826
marker_line_color="white",
826827
showscale=False, # hide continuous colorbar; we'll add a categorical legend
827828
hoverinfo="skip",
@@ -955,7 +956,7 @@ df.columns = (
955956
.str.replace(" [Note 3]", "")
956957
.str.replace("\n[Note 1, 3]", "")
957958
.str.replace("\n[Note 2, 3]", "")
958-
.str.replace("=100\n[Note 3]", "")
959+
.str.replace("CPI 2025=100\n[Note 3]", "")
959960
)
960961
961962
for c in df.columns:
@@ -970,6 +971,7 @@ fig.add_trace(
970971
x=df.index,
971972
y=df.columns,
972973
colorscale=sequential[1:],
974+
colorbar=dict(title="CPI (2025 = 100)"),
973975
hoverinfo="skip",
974976
)
975977
)

0 commit comments

Comments
 (0)