質問編集履歴

1

データフレーム名を修正

2021/07/19 21:50

投稿

s-hara
s-hara

スコア52

test CHANGED
File without changes
test CHANGED
@@ -50,15 +50,13 @@
50
50
 
51
51
  ```python
52
52
 
53
- fig_line = px.bar(df_total_per_day, x='created_date',
53
+ import plotly.express as px
54
54
 
55
- y="total",
55
+ fig_line = px.bar(df, x='created_date',y="total",)
56
56
 
57
- )
57
+ fig_line.update_xaxes(tickvals=df['created_date'],tickformat="%Y-%m/%d") #軸の値
58
58
 
59
- fig_line.update_xaxes(tickvals=df_total_per_day['created_date'],tickformat="%Y-%m/%d") #軸の値
60
-
61
- fig_line.update_yaxes(tickvals=df_total_per_day['total'],tickformat='0.0f') #軸の値
59
+ fig_line.update_yaxes(tickvals=df['total'],tickformat='0.0f') #軸の値
62
60
 
63
61
  fig_line.update_layout(
64
62