mirror of
https://github.com/flobz/psa_car_controller.git
synced 2026-08-23 18:06:15 +00:00
disable console.log and set xaxis_title
This commit is contained in:
@@ -40,9 +40,8 @@ function filter_dataset(data, range, old_figure, x,y) {
|
||||
figure["data"][j]["x"] = x_values
|
||||
}
|
||||
}
|
||||
console.log(figure);
|
||||
// console.log(figure);
|
||||
figures.push(figure);
|
||||
|
||||
});
|
||||
return figures;
|
||||
}
|
||||
|
||||
+1
-1
@@ -120,7 +120,7 @@ def get_figures(trips: Trips, charging: List[dict]):
|
||||
consumption_df_dict = trips.get_long_trips()
|
||||
consumption_fig = px.histogram(x=[0], y=[1], title='Consumption of the car',
|
||||
histfunc="avg")
|
||||
consumption_fig.update_layout(yaxis_title="Consumption kWh/100Km")
|
||||
consumption_fig.update_layout(yaxis_title="Consumption kWh/100Km", xaxis_title="date")
|
||||
|
||||
consumption_fig_by_speed = px.histogram(x=[0], y=[1], histfunc="avg",
|
||||
title="Consumption by speed")
|
||||
|
||||
Reference in New Issue
Block a user