This is an automated email from the ASF dual-hosted git repository.

sushuang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git

commit 09447652b1c1b5df824d8cb08cb73ab4b7019d4d
Author: sushuang <sushuang0...@gmail.com>
AuthorDate: Mon Apr 16 21:43:22 2018 +0800

    tweak.
---
 src/component/axisPointer/viewHelper.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/component/axisPointer/viewHelper.js 
b/src/component/axisPointer/viewHelper.js
index fc7a1e9..e821ee3 100644
--- a/src/component/axisPointer/viewHelper.js
+++ b/src/component/axisPointer/viewHelper.js
@@ -107,6 +107,7 @@ function confineInContainer(position, width, height, api) {
  * @param {string|Function} opt.formatter label formatter
  */
 export function getValueLabel(value, axis, ecModel, seriesDataIndices, opt) {
+    value = axis.scale.parse(value);
     var text = axis.scale.getLabel(
         // If `precision` is set, width can be fixed (like '12.00500'), which
         // helps to debounce when when moving label.

-- 
To stop receiving notification emails like this one, please contact
sushu...@apache.org.

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org
For additional commands, e-mail: commits-h...@echarts.apache.org

Reply via email to