Spaces:
Sleeping
Sleeping
Create dashboard.py
Browse files- dashboard.py +8 -0
dashboard.py
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import plotly.graph_objects as go
|
| 2 |
+
|
| 3 |
+
def plot_harmonization(raw, harm):
|
| 4 |
+
fig = go.Figure()
|
| 5 |
+
fig.add_trace(go.Bar(name="Raw", x=["Price"], y=[raw]))
|
| 6 |
+
fig.add_trace(go.Bar(name="Harmonized", x=["Price"], y=[harm]))
|
| 7 |
+
fig.update_layout(barmode='group', title="Raw vs Harmonized")
|
| 8 |
+
return fig
|