From 95a64c6a03b6e8fcbb68a2531e6e28f7ac3160bc Mon Sep 17 00:00:00 2001 From: lang Date: Fri, 24 Jun 2016 16:56:29 +0800 Subject: [PATCH] Fix in two category axis data can't be category string --- src/chart/helper/createListFromArray.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chart/helper/createListFromArray.js b/src/chart/helper/createListFromArray.js index d6a1eacb3c..9385060aa1 100644 --- a/src/chart/helper/createListFromArray.js +++ b/src/chart/helper/createListFromArray.js @@ -76,7 +76,7 @@ define(function(require) { list.hasItemOption = true; } - if (categoryDimIndex === dimIndex) { + if (dimensions[dimIndex].type === 'ordinal') { // If given value is a category string if (typeof val === 'string') { // Lazy get categories