2025.42 changes
This commit is contained in:
14
source/plotting/charts/plotly_figure_bar.py
Normal file
14
source/plotting/charts/plotly_figure_bar.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import pandas as pd
|
||||
from plotly.graph_objs import Figure, Bar
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
df = pd.DataFrame(data={"label": ["Citron", "Pomme", "Mangue"], "price": [1.99, 3.97, 6.8]})
|
||||
figure = Figure(
|
||||
data=[Bar(x=df["label"], y=df["price"])],
|
||||
layout={
|
||||
"font": {"family": "Cabin", "size": 20},
|
||||
"title": "Prix au kilo",
|
||||
}
|
||||
)
|
||||
figure.show(renderer="browser")
|
||||
Reference in New Issue
Block a user