From 8372d022614a1897120802cf1bac90d61651177f Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期五, 14 三月 2025 18:20:56 +0800 Subject: [PATCH] 2025.3.14 --- src/model/Legend.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/model/Legend.js b/src/model/Legend.js index 9d852d1..05ee593 100644 --- a/src/model/Legend.js +++ b/src/model/Legend.js @@ -292,7 +292,7 @@ getCustomColor: function (data, min, max) { var per = (max - min) / this._custom.length; - var i = parseInt(data / per); + var i = parseInt((data - min) / per); if (i >= this._custom.length) { i = this._custom.length - 1; } -- Gitblit v1.9.3