Skip to content

Commit

Permalink
Add icons and tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
huong-li-nguyen committed Aug 26, 2024
1 parent ef4fdbd commit 5dc0861
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions vizro-core/examples/kpi/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
title="Total Complaints",
value_format="{value:.0f}",
reference_format="{delta_relative:+.1%} vs. 2018 ({reference:.0f})",
icon="person",
),
),
vm.Figure(
Expand All @@ -38,6 +39,7 @@
title="Closed Complaints",
value_format="{value:.1f}%",
reference_format="{delta:+.1f}pp vs. 2018 ({reference:.1f}%)",
icon="inventory",
)
),
vm.Figure(
Expand All @@ -48,6 +50,7 @@
title="Timely Response",
value_format="{value:.1f}%",
reference_format="{delta:+.1f}pp vs. 2018 ({reference:.1f}%)",
icon="timer",
)
),
vm.Figure(
Expand All @@ -58,6 +61,7 @@
title="Closed w/o cost",
value_format="{value:.1f}%",
reference_format="{delta:.1f}pp vs. 2018 ({reference:.1f}%)",
icon="payments",
)
),
vm.Figure(
Expand All @@ -68,6 +72,7 @@
title="Consumer disputed",
value_format="{value:.1f}%",
reference_format="{delta:+.1f}pp vs. 2018 ({reference:.1f}%)",
icon="sentiment_dissatisfied",
)
),
],
Expand Down
3 changes: 0 additions & 3 deletions vizro-core/examples/kpi/utils/_charts.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ def build(self):
)


vm.Container.add_type("components", FlexContainer)


# CUSTOM CHARTS ----------------------------------------------------------------
@capture("graph")
def bar(
Expand Down
2 changes: 1 addition & 1 deletion vizro-core/src/vizro/static/css/figures.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Note the relative url works with both serve_locally=True and serve_locally=False
bootstrap font tokens, leading to deviations which we need to overwrite. */
.card-kpi-title {
font-size: 1.2rem;
line-height: 1;
line-height: normal;
margin: 0;
}

Expand Down

0 comments on commit 5dc0861

Please sign in to comment.