Skip to content

Commit

Permalink
Merge pull request #651 from flobz/jellebuitenhuis-master
Browse files Browse the repository at this point in the history
fix: X-axis to human readable date
  • Loading branch information
flobz authored Nov 8, 2023
2 parents d759102 + 0cbb081 commit 197c2b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions psa_car_controller/web/figures.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ def get_figures(car: Car):
consumption_fig = px.histogram(x=[0], y=[1], title='Consumption of the car',
histfunc="avg")
consumption_fig.update_layout(yaxis_title="Consumption kWh/100Km", xaxis_title="date")
consumption_fig.update_xaxes(type="date", tickformat="%d/%m/%Y")

consumption_fig_by_speed = px.histogram(data_frame=[{"start_at": 1, "speed_average": 2}], x="start_at",
y="speed_average", histfunc="avg",
Expand Down

0 comments on commit 197c2b1

Please sign in to comment.