ordershape fixes

This commit is contained in:
tim
2024-09-23 02:44:57 -04:00
parent b82171dfb0
commit bc443172a1
9 changed files with 113 additions and 96 deletions

View File

@@ -51,7 +51,7 @@ function changeInterval(interval, _timeframe) {
function dataLoaded() {
const range = chartMeanRange()
console.log('new mean range', range)
console.log('new mean range', range,)
co.meanRange = range
}
@@ -400,6 +400,8 @@ export function deleteShapeId(id) {
chart.removeEntity(id)
}
const MEAN_RANGE_MULTIPLIER = 10
function chartMeanRange() {
let range = 0
const series = chart.getSeries()
@@ -415,5 +417,5 @@ function chartMeanRange() {
range /= count
else
range = 1
return range
return range * MEAN_RANGE_MULTIPLIER
}