File tree Expand file tree Collapse file tree 2 files changed +53
-13
lines changed
Expand file tree Collapse file tree 2 files changed +53
-13
lines changed Original file line number Diff line number Diff line change @@ -102,26 +102,66 @@ export default {
102102 dataLabels: {
103103 enabled: false
104104 },
105- colors: [' #ffa500' , ' #b20000' , ' #66a266 ' ],
105+ colors: [' #ffa500' , ' #b20000' ],
106106 stroke: {
107- width: [4 , 4 , 4 ]
107+ width: [4 , 4 ]
108+ },
109+ plotOptions: {
110+ bar: {
111+ columnWidth: " 20%"
112+ }
108113 },
109114 xaxis: {
110115 type: ' datetime' ,
111116 labels: {
112117 format: ' dd MMM'
113118 }
114119 },
115- yaxis: {
116- opposite: true ,
117- labels: {
118- align: ' right' ,
119- offsetX: - 20
120+ yaxis: [
121+ {
122+ logarithmic: true ,
123+ axisTicks: {
124+ show: true
125+ },
126+ axisBorder: {
127+ show: true ,
128+ color: " #ffa500"
129+ },
130+ labels: {
131+ style: {
132+ colors: " #ffa500"
133+ }
134+ },
135+ title: {
136+ style: {
137+ color: " #ffa500"
138+ }
139+ }
140+ },
141+ {
142+ opposite: true ,
143+ logarithmic: true ,
144+ axisTicks: {
145+ show: true
146+ },
147+ axisBorder: {
148+ show: true ,
149+ color: " #b20000"
150+ },
151+ labels: {
152+ style: {
153+ colors: " #b20000"
154+ }
155+ },
156+ title: {
157+ style: {
158+ color: " #b20000"
159+ }
160+ }
120161 }
121- } ,
162+ ] ,
122163 legend: {
123- show: false ,
124- horizontalAlign: ' left'
164+ show: false
125165 }
126166 }
127167 },
Original file line number Diff line number Diff line change @@ -65,9 +65,9 @@ export default {
6565 return Math . floor ( seconds ) + ' seconds'
6666 }
6767 const series = _ => {
68- const timelineConfirmed = Object . entries ( result . timelines . confirmed . timeline ) . map ( o => o )
69- const timelineDeaths = Object . entries ( result . timelines . deaths . timeline ) . map ( o => o )
70- // const timelineRecovered = Object.entries(result.timelines.recovered.timeline).map(o => o)
68+ const timelineConfirmed = Object . entries ( result . timelines . confirmed . timeline ) . filter ( o => o [ 1 ] !== 0 ) . map ( o => o )
69+ const timelineDeaths = Object . entries ( result . timelines . deaths . timeline ) . filter ( o => o [ 1 ] !== 0 ) . map ( o => o )
70+ // const timelineRecovered = Object.entries(result.timelines.recovered.timeline).filter(o => o[1] !== 0 ).map(o => o)
7171 return [
7272 {
7373 name : 'Confirmed' ,
You can’t perform that action at this time.
0 commit comments