fix: responsive chart heights + rename cost metric labels (Task E.5)
This commit is contained in:
@@ -268,6 +268,12 @@ body {
|
||||
#pathway-chart {
|
||||
flex: 1; min-height: 0;
|
||||
}
|
||||
/* Propagate flex height into Plotly-rendered divs when no explicit figure height is set */
|
||||
#pathway-chart .js-plotly-plot,
|
||||
#pathway-chart .plot-container,
|
||||
#pathway-chart .svg-container {
|
||||
height: 100% !important;
|
||||
}
|
||||
.chart-card > .dash-loading-callback,
|
||||
.chart-card > .dash-loading-callback > div {
|
||||
flex: 1; display: flex; flex-direction: column; min-height: 0;
|
||||
|
||||
@@ -86,8 +86,8 @@ def make_chart_card():
|
||||
id="heatmap-metric-toggle",
|
||||
data=[
|
||||
{"value": "patients", "label": "Patients"},
|
||||
{"value": "cost", "label": "Cost"},
|
||||
{"value": "cost_pp_pa", "label": "Cost p.a."},
|
||||
{"value": "cost", "label": "Cost per Patient"},
|
||||
{"value": "cost_pp_pa", "label": "Cost per Patient p.a."},
|
||||
],
|
||||
value="patients",
|
||||
size="xs",
|
||||
|
||||
@@ -84,8 +84,8 @@ def make_tc_dashboard():
|
||||
id="tc-heatmap-metric-toggle",
|
||||
data=[
|
||||
{"value": "patients", "label": "Patients"},
|
||||
{"value": "cost", "label": "Cost"},
|
||||
{"value": "cost_pp_pa", "label": "Cost p.a."},
|
||||
{"value": "cost", "label": "Cost per Patient"},
|
||||
{"value": "cost_pp_pa", "label": "Cost per Patient p.a."},
|
||||
],
|
||||
value="patients",
|
||||
size="xs",
|
||||
|
||||
Reference in New Issue
Block a user