You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by su...@apache.org on 2018/04/16 15:43:30 UTC
[incubator-echarts] 01/04: tweak.
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 <su...@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
sushuang@apache.org.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org