Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

同时设置sourceHeader:false与dimensions时,sourceHeader不起作用 #16084

Closed
ziloen opened this issue Nov 19, 2021 · 5 comments
Closed

Comments

@ziloen
Copy link

ziloen commented Nov 19, 2021

Version

5.2.1

Reproduction link

https://jsbin.com/remisihaza/edit?html,output

Steps to reproduce

const option = {
  dataset: {
    dimensions: ['product', '2015', '2016', '2017'],
    sourceHeader: false,
    source: [
      ['111', '43.3', '85.8', '93.7'],
      ['222', 83.1, 73.4, 55.1],
      ['333', 86.4, 65.2, 82.5],
      ['444', 72.4, 53.9, 39.1]
    ],
  },
  xAxis: { type: 'category' },
  yAxis: {},
  series: [{ type: 'bar' }, { type: 'bar' }, { type: 'bar' }]
};

What is expected?

source第一行开始就是数据

What is actually happening?

当第一行数字均为字符串时,第一行会丢失,且不会改变维度信息

@echarts-bot
Copy link

echarts-bot bot commented Nov 19, 2021

Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that it contains a minimum reproducible demo and necessary images to illustrate. Otherwise, our committers will ask you to do so.

A minimum reproducible demo should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.

You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to [email protected]. Please attach the issue link if it's a technical question.

If you are interested in the project, you may also subscribe to our mailing list.

Have a nice day! 🍵

@echarts-bot echarts-bot bot added bug pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Nov 19, 2021
@echarts-bot
Copy link

echarts-bot bot commented Nov 19, 2021

@Oen-Cpz It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people, we'd like to suggest using English next time. 🤗

TRANSLATED

TITLE

SourceHeader does not work when setting sourceHeader:false with dimesions at the same time

BODY

Version

5.2.0

Reproduction link

https://jsbin.com/remisihaza/edit?html,output

Steps to reproduce

const option = {
  dataset: {
    dimensions: ['product', '2015', '2016', '2017'],
    sourceHeader: false,
    source: [
      ['111', '43.3', '85.8', '93.7'],
      ['222', 83.1, 73.4, 55.1],
      ['333', 86.4, 65.2, 82.5],
      ['444', 72.4, 53.9, 39.1]
    ],
  },
  xAxis: {type:'category' },
  yAxis: {},
  series: [{ type:'bar' }, {type:'bar' }, {type:'bar' }]
};

What is expected?

The first line of source is the data

What is actually happening?

When the first line of numbers are all strings, the first line will be lost, and the dimension information will not be changed

@Ovilia Ovilia added topic: dataset and removed pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Nov 23, 2021
@Ovilia Ovilia added this to the 5.3 milestone Nov 23, 2021
@lefex
Copy link
Contributor

lefex commented Jan 24, 2022

you can use 5.3.0-rc.1 version (https://cdn.jsdelivr.net/npm/[email protected]/dist/echarts.min.js) to test if you bug fixed.

This is my test:

9ffab7a29769de472c91ddaf19e0b666

@susiwen8

@pissang pissang removed this from the 5.3 milestone Jan 24, 2022
@susiwen8
Copy link
Contributor

Great jon @lefex

@ziloen
Copy link
Author

ziloen commented Jan 24, 2022

现在sourceHeader可以正常工作了,感谢
now sourceHeader works fine, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants