From 9d7f9c00c3653b5afef15b9155c2c047ea55f2af Mon Sep 17 00:00:00 2001 From: "Bernard A. Badger" Date: Wed, 20 May 2020 18:33:44 -0400 Subject: [PATCH] Use width 10 in '%{y:10,}' and '%{x:10,} since US Cases is now over 1,000,000 --- vue-definitions.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vue-definitions.js b/vue-definitions.js index 91a204a..14b7078 100644 --- a/vue-definitions.js +++ b/vue-definitions.js @@ -716,9 +716,9 @@ window.app = new Vue({ let showDailyMarkers = this.filteredCovidData.length <= 2; - let weeklyTotalExtra = - '
%{y:8,}: Weekly ' + this.selectedData + - '
%{x:8,}: Total ' + this.selectedData + + let hovertemplateBody = + '
%{y:10,}: Weekly ' + this.selectedData + + '
%{x:10,}: Total ' + this.selectedData + ''; // draws grey lines (line plot for each location) @@ -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, }) ); @@ -755,7 +755,7 @@ window.app = new Vue({ size: 6, color: 'rgba(254, 52, 110, 1)' }, - hovertemplate: '%{data.text}' + weeklyTotalExtra, + hovertemplate: '%{data.text}' + hovertemplateBody, }));