disable console.log and set xaxis_title

This commit is contained in:
Florian Bezannier
2021-05-10 20:53:53 +02:00
parent c2d0cdadd5
commit 6334dacae9
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -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
View File
@@ -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")