tappyness1 commited on
Commit
3d19079
1 Parent(s): ae3451c

force category

Browse files
Files changed (1) hide show
  1. src/heatmap.py +5 -17
src/heatmap.py CHANGED
@@ -68,22 +68,10 @@ class HeatMap:
68
  x="Hour of the Day", y="Day of the Week", color="Traffic"
69
  ),
70
  x=[
71
- "00",
72
- "01",
73
- "02",
74
- "03",
75
- "04",
76
- "05",
77
- "06",
78
- "07",
79
- "08",
80
- "09",
81
- "10",
82
- "11",
83
- "12",
84
- "13",
85
- "14",
86
- "15",
87
  "16",
88
  "17",
89
  "18",
@@ -166,5 +154,5 @@ class HeatMap:
166
  xaxis_showticklabels=True,
167
  xaxis_title = '',
168
  )
169
- fig_days.update_xaxes(tickangle=0, tickmode = 'linear', type = 'category')
170
  return fig_days
 
68
  x="Hour of the Day", y="Day of the Week", color="Traffic"
69
  ),
70
  x=[
71
+ "00", "01", "02", "03",
72
+ "04", "05", "06", "07",
73
+ "08", "09", "10", "11",
74
+ "12", "13", "14", "15",
 
 
 
 
 
 
 
 
 
 
 
 
75
  "16",
76
  "17",
77
  "18",
 
154
  xaxis_showticklabels=True,
155
  xaxis_title = '',
156
  )
157
+ fig_days.update_xaxes(tickangle=0, tickmode = 'linear', type = 'category', categoryorder='category ascending')
158
  return fig_days