fix battery consumption rates bar chart

replace/d4232d2bb030c31efa275f49fb01106a842b8f6d
Meng Li 2019-11-25 15:44:10 -05:00
parent 99d387a7a4
commit 2230421167
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ import plotly.graph_objects as go
def getBatteryConsumptionRatesBarChart(battery_data, pid):
plot = go.Figure(go.Bar(
x=battery_data["battery_consumption_rate"],
x=battery_data["battery_daily_avgconsumptionrate"],
y=battery_data["local_date"].apply(lambda x: x.replace("-","/")).tolist(),
orientation='h'))
plot.update_layout(title="Daily battery consumption rates bar chart for " + pid,