Fixed mouseover label on prices for "tomorrow"

This commit is contained in:
Gunnar Skjold 2023-06-11 06:59:07 +02:00
parent a4b07f4097
commit 2cbe566910
2 changed files with 3 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -47,8 +47,10 @@
});
points.push({
label: val >= 0 ? val.toFixed(d) : '',
title: val >= 0 ? val.toFixed(2) + ' ' + json.currency : '',
value: val >= 0 ? Math.abs(val*100) : 0,
label2: val < 0 ? val.toFixed(d) : '',
title2: val < 0 ? val.toFixed(2) + ' ' + json.currency : '',
value2: val < 0 ? Math.abs(val*100) : 0,
color: '#7c3aed'
});