@@ -117,6 +117,7 @@ class CovidApp extends Component {
117
117
render ( ) {
118
118
const { classes, setDarkMode, isDarkMode } = this . props ;
119
119
const { mapData, tableData, isLoading, data } = this . state ;
120
+ console . log ( this . state . casesTimeline ) ;
120
121
121
122
if ( isLoading ) {
122
123
return (
@@ -170,17 +171,17 @@ class CovidApp extends Component {
170
171
data = { this . state . casesTimeline }
171
172
isLoading = { this . state . isLoading }
172
173
/>
173
- { /* <div className={classes.tinyChartArea}>
174
+ < div className = { classes . tinyChartArea } >
174
175
< div className = { classes . tinyChart } >
175
176
< div
176
177
className = { classes . tinych }
177
178
style = { { background : "rgba(249, 52, 94,.1)" } }
178
179
>
179
180
< h3 style = { { color : colors . red } } > confirmed</ h3 >
180
181
< Barchart
181
- data={this.state.data }
182
+ data = { this . state . casesTimeline }
182
183
isLoading = { this . state . isLoading }
183
- dataKey="confirmed "
184
+ dataKey = "totalconfirmed "
184
185
stroke = { colors . red }
185
186
/>
186
187
</ div >
@@ -192,9 +193,9 @@ class CovidApp extends Component {
192
193
>
193
194
< h3 style = { { color : colors . orange } } > active</ h3 >
194
195
< Barchart
195
- data={this.state.data }
196
+ data = { this . state . casesTimeline }
196
197
isLoading = { this . state . isLoading }
197
- dataKey="active "
198
+ dataKey = "totalactive "
198
199
stroke = { colors . orange }
199
200
/>
200
201
</ div >
@@ -206,9 +207,9 @@ class CovidApp extends Component {
206
207
>
207
208
< h3 style = { { color : colors . green } } > Recovered</ h3 >
208
209
< Barchart
209
- data={this.state.data }
210
+ data = { this . state . casesTimeline }
210
211
isLoading = { this . state . isLoading }
211
- dataKey="discharged "
212
+ dataKey = "totalrecovered "
212
213
stroke = { colors . green }
213
214
/>
214
215
</ div >
@@ -220,14 +221,14 @@ class CovidApp extends Component {
220
221
>
221
222
< h3 style = { { color : colors . purple } } > Deceased</ h3 >
222
223
< Barchart
223
- data={this.state.data }
224
+ data = { this . state . casesTimeline }
224
225
isLoading = { this . state . isLoading }
225
- dataKey="deaths "
226
+ dataKey = "totaldeceased "
226
227
stroke = { colors . purple }
227
228
/>
228
229
</ div >
229
230
</ div >
230
- </div> */ }
231
+ </ div >
231
232
</ div >
232
233
{ /* <div className={classes.tableContainer}>
233
234
<h2 className={classes.tableHeading}>
0 commit comments