bugfixing normalizer
This commit is contained in:
parent
b58426fa3b
commit
f08d208cea
@ -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%',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user