fix: Sankey freeform arrangement + increased padding (Task B.3)
This commit is contained in:
@@ -109,9 +109,9 @@ Comprehensive review and improvement of all Plotly charts in the Dash dashboard.
|
|||||||
- **Checkpoint**: Lollipop dots show smooth green→amber→red gradient
|
- **Checkpoint**: Lollipop dots show smooth green→amber→red gradient
|
||||||
|
|
||||||
### B.3 Sankey narrow-screen fix
|
### B.3 Sankey narrow-screen fix
|
||||||
- [ ] In `create_sankey_figure()` (~L788):
|
- [x] In `create_sankey_figure()` (~L808):
|
||||||
- Change `arrangement="snap"` → `arrangement="freeform"`
|
- Changed `arrangement="snap"` → `arrangement="freeform"`
|
||||||
- Increase `pad` from 20 → 25
|
- Increased `pad` from 20 → 25
|
||||||
- **Checkpoint**: Sankey nodes don't overlap on narrow viewports
|
- **Checkpoint**: Sankey nodes don't overlap on narrow viewports
|
||||||
|
|
||||||
### B.4 Heatmap metric toggle (both views)
|
### B.4 Heatmap metric toggle (both views)
|
||||||
|
|||||||
@@ -805,9 +805,9 @@ def create_sankey_figure(
|
|||||||
|
|
||||||
fig = go.Figure(
|
fig = go.Figure(
|
||||||
go.Sankey(
|
go.Sankey(
|
||||||
arrangement="snap",
|
arrangement="freeform",
|
||||||
node=dict(
|
node=dict(
|
||||||
pad=20,
|
pad=25,
|
||||||
thickness=25,
|
thickness=25,
|
||||||
line=dict(color="#FFFFFF", width=1),
|
line=dict(color="#FFFFFF", width=1),
|
||||||
label=node_labels,
|
label=node_labels,
|
||||||
|
|||||||
Reference in New Issue
Block a user