Skip to content

Commit 4e7d797

Browse files
author
jacquesbach
committed
Small changes
1 parent 7231724 commit 4e7d797

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

static/js/script.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,15 +1058,15 @@ async function loadForecast() {
10581058
pointRadius: (ctx) => {
10591059
return ctx.dataIndex === appState.activeIndex ? 8 : 6;
10601060
},
1061-
pointHoverRadius: 10,
10621061
hitRadius: 20,
1063-
pointBackgroundColor: (ctx) => {
1064-
if (ctx.dataIndex === appState.activeIndex) return '#ffffff';
1065-
return '#ef4444';
1062+
pointHoverRadius: (ctx) => {
1063+
return ctx.dataIndex === appState.activeIndex ? 8 : 10;
10661064
},
1067-
pointBorderWidth: (ctx) => {
1068-
if (ctx.dataIndex === appState.activeIndex) return 3;
1069-
return 0;
1065+
pointHoverBackgroundColor: (ctx) => {
1066+
return ctx.dataIndex === appState.activeIndex ? '#ffffff' : '#ffffff';
1067+
},
1068+
pointHoverBorderWidth: (ctx) => {
1069+
return ctx.dataIndex === appState.activeIndex ? 3 : 1;
10701070
},
10711071
pointBorderColor: '#ef4444',
10721072
fill: false

0 commit comments

Comments
 (0)