Skip to content

Commit

Permalink
Use width 10 in '%{y:10,}' and '%{x:10,} since US Cases is now over 1…
Browse files Browse the repository at this point in the history
…,000,000
  • Loading branch information
bab9e9 committed May 20, 2020
1 parent 666b7d9 commit 9d7f9c0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions vue-definitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -716,9 +716,9 @@ window.app = new Vue({

let showDailyMarkers = this.filteredCovidData.length <= 2;

let weeklyTotalExtra =
'<br>%{y:8,}: Weekly ' + this.selectedData +
'<br>%{x:8,}: Total ' + this.selectedData +
let hovertemplateBody =
'<br>%{y:10,}: Weekly ' + this.selectedData +
'<br>%{x:10,}: Total ' + this.selectedData +
'<extra></extra>';

// draws grey lines (line plot for each location)
Expand All @@ -738,7 +738,7 @@ window.app = new Vue({
color: 'rgba(0,0,0,0.15)'
},
hoverinfo: 'x+y+text',
hovertemplate: '%{text}' + weeklyTotalExtra,
hovertemplate: '%{text}' + hovertemplateBody,
})
);

Expand All @@ -755,7 +755,7 @@ window.app = new Vue({
size: 6,
color: 'rgba(254, 52, 110, 1)'
},
hovertemplate: '%{data.text}' + weeklyTotalExtra,
hovertemplate: '%{data.text}' + hovertemplateBody,

}));

Expand Down

0 comments on commit 9d7f9c0

Please sign in to comment.