ordershape fixes
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user