Skip to content

Commit

Permalink
Fix in two category axis data can't be category string
Browse files Browse the repository at this point in the history
  • Loading branch information
pissang committed Jun 24, 2016
1 parent 2193721 commit 95a64c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chart/helper/createListFromArray.js
Expand Up @@ -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
Expand Down

1 comment on commit 95a64c6

@daoyuanjiao
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我将echarts.js中18956行中的 if (categoryDimIndex === dimIndex) { 替换为 if (dimensions[dimIndex].type === 'ordinal') { 是可以出现折线,但是只是一条直线,没有显示出数据的变化。我用索引的时候画出的是一条斜线。您有时间可以再测试一下,谢谢!

Please sign in to comment.