質問編集履歴
1
データフレーム名を修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -50,15 +50,13 @@
|
|
50
50
|
|
51
51
|
```python
|
52
52
|
|
53
|
-
|
53
|
+
import plotly.express as px
|
54
54
|
|
55
|
-
|
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
|
59
|
+
fig_line.update_yaxes(tickvals=df['total'],tickformat='0.0f') #軸の値
|
62
60
|
|
63
61
|
fig_line.update_layout(
|
64
62
|
|