li-nguyen commited on
Commit
cd1f702
1 Parent(s): c7a4e0d

Add last changes

Browse files
Files changed (4) hide show
  1. README.md +2 -2
  2. app.py +5 -0
  3. images/kpi-dashboard.gif +3 -0
  4. utils/_charts.py +0 -3
README.md CHANGED
@@ -9,7 +9,7 @@ license: apache-2.0
9
  short_description: Example of a Key Performance Indicator (KPI) dashboard
10
  ---
11
 
12
- # KPI dashboard
13
 
14
  This dashboard provides an example of a Key Performance Indicator (KPI) dashboard, designed to help users get started
15
  and extend further. It uses fictional budget data to demonstrate the capabilities of Vizro using real world applications.
@@ -41,7 +41,7 @@ provides high-quality fake data for creating realistic dashboard examples for re
41
 
42
  ### 🖥️ App demo
43
 
44
- <img src="./kpi-dashboard.gif" alt="Gif to KPI dashboard" width="600">
45
 
46
  ---
47
 
 
9
  short_description: Example of a Key Performance Indicator (KPI) dashboard
10
  ---
11
 
12
+ # KPI Dashboard
13
 
14
  This dashboard provides an example of a Key Performance Indicator (KPI) dashboard, designed to help users get started
15
  and extend further. It uses fictional budget data to demonstrate the capabilities of Vizro using real world applications.
 
41
 
42
  ### 🖥️ App demo
43
 
44
+ <img src="./images/kpi-dashboard.gif" alt="Gif to KPI dashboard" width="600">
45
 
46
  ---
47
 
app.py CHANGED
@@ -28,6 +28,7 @@ kpi_banner = FlexContainer(
28
  title="Total Complaints",
29
  value_format="{value:.0f}",
30
  reference_format="{delta_relative:+.1%} vs. 2018 ({reference:.0f})",
 
31
  ),
32
  ),
33
  vm.Figure(
@@ -38,6 +39,7 @@ kpi_banner = FlexContainer(
38
  title="Closed Complaints",
39
  value_format="{value:.1f}%",
40
  reference_format="{delta:+.1f}pp vs. 2018 ({reference:.1f}%)",
 
41
  )
42
  ),
43
  vm.Figure(
@@ -48,6 +50,7 @@ kpi_banner = FlexContainer(
48
  title="Timely Response",
49
  value_format="{value:.1f}%",
50
  reference_format="{delta:+.1f}pp vs. 2018 ({reference:.1f}%)",
 
51
  )
52
  ),
53
  vm.Figure(
@@ -58,6 +61,7 @@ kpi_banner = FlexContainer(
58
  title="Closed w/o cost",
59
  value_format="{value:.1f}%",
60
  reference_format="{delta:.1f}pp vs. 2018 ({reference:.1f}%)",
 
61
  )
62
  ),
63
  vm.Figure(
@@ -68,6 +72,7 @@ kpi_banner = FlexContainer(
68
  title="Consumer disputed",
69
  value_format="{value:.1f}%",
70
  reference_format="{delta:+.1f}pp vs. 2018 ({reference:.1f}%)",
 
71
  )
72
  ),
73
  ],
 
28
  title="Total Complaints",
29
  value_format="{value:.0f}",
30
  reference_format="{delta_relative:+.1%} vs. 2018 ({reference:.0f})",
31
+ icon="person",
32
  ),
33
  ),
34
  vm.Figure(
 
39
  title="Closed Complaints",
40
  value_format="{value:.1f}%",
41
  reference_format="{delta:+.1f}pp vs. 2018 ({reference:.1f}%)",
42
+ icon="inventory",
43
  )
44
  ),
45
  vm.Figure(
 
50
  title="Timely Response",
51
  value_format="{value:.1f}%",
52
  reference_format="{delta:+.1f}pp vs. 2018 ({reference:.1f}%)",
53
+ icon="timer",
54
  )
55
  ),
56
  vm.Figure(
 
61
  title="Closed w/o cost",
62
  value_format="{value:.1f}%",
63
  reference_format="{delta:.1f}pp vs. 2018 ({reference:.1f}%)",
64
+ icon="payments",
65
  )
66
  ),
67
  vm.Figure(
 
72
  title="Consumer disputed",
73
  value_format="{value:.1f}%",
74
  reference_format="{delta:+.1f}pp vs. 2018 ({reference:.1f}%)",
75
+ icon="sentiment_dissatisfied",
76
  )
77
  ),
78
  ],
images/kpi-dashboard.gif ADDED

Git LFS Details

  • SHA256: de57229ea8570c9038cb6c4b0217dee896fac4b7bcde452b5ed7afc74cfbcacf
  • Pointer size: 132 Bytes
  • Size of remote file: 1.85 MB
utils/_charts.py CHANGED
@@ -25,9 +25,6 @@ class FlexContainer(vm.Container):
25
  )
26
 
27
 
28
- vm.Container.add_type("components", FlexContainer)
29
-
30
-
31
  # CUSTOM CHARTS ----------------------------------------------------------------
32
  @capture("graph")
33
  def bar(
 
25
  )
26
 
27
 
 
 
 
28
  # CUSTOM CHARTS ----------------------------------------------------------------
29
  @capture("graph")
30
  def bar(