bugfixing normalizer

This commit is contained in:
MuslemRahimi 2024-07-15 20:23:35 +02:00
parent b58426fa3b
commit f08d208cea

View File

@ -66,7 +66,7 @@ function findLowestAndHighestPrice(data, lastDateStr) {
} else if (Math?.abs(value) >= 1e6) { } else if (Math?.abs(value) >= 1e6) {
return { unit: 'M', denominator: 1e6 }; return { unit: 'M', denominator: 1e6 };
} else if (Math?.abs(value) >= 1e5) { } else if (Math?.abs(value) >= 1e5) {
return { unit: 'K', denominator: 1e5 }; return { unit: 'K', denominator: 1e3 };
} else { } else {
return { unit: '', denominator: 1 }; return { unit: '', denominator: 1 };
} }
@ -97,6 +97,10 @@ function findLowestAndHighestPrice(data, lastDateStr) {
const option = { const option = {
silent: true, silent: true,
tooltip: {
trigger: 'axis',
hideDelay: 100, // Set the delay in milliseconds
},
animation: $screenWidth < 640 ? false: true, animation: $screenWidth < 640 ? false: true,
grid: { grid: {
left: '2%', left: '2%',