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

5.0 broken when using demand import #13764

Closed
fxxjdedd opened this issue Dec 5, 2020 · 4 comments
Closed

5.0 broken when using demand import #13764

fxxjdedd opened this issue Dec 5, 2020 · 4 comments
Assignees
Labels
bug en This issue is in English FAQ v5 Frequent Asked Questions (v5)
Milestone

Comments

@fxxjdedd
Copy link

fxxjdedd commented Dec 5, 2020

Version

5.0.0

Steps to reproduce

import echarts from 'echarts/lib/echarts'
import 'echarts/lib/component/dataset'
import 'echarts/lib/chart/line'
import 'echarts/lib/component/axis'
import 'echarts/lib/component/title'

const ins = echarts.init(document.getElementById('chart'))
ins.setOption({
  title: {
    text: 123
  },
  yAxis: [{}],
  xAxis: [{type: 'category'}],
  dataset: {
    dimensions: ['date', 'pv'],
    source: [
      { date: '1', pv: 123 }
    ]
  }, 
  series: [{
    type: 'line'
  }]
}) 

What is expected?

work

What is actually happening?

broken
image

@echarts-bot
Copy link

echarts-bot bot commented Dec 5, 2020

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 you have posted enough image to demo your request. 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 dev@echarts.apache.org. Please attach the issue link if it's a technical question.

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

Have a nice day! 🍵

@echarts-bot echarts-bot bot added bug en This issue is in English pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Dec 5, 2020
@fxxjdedd
Copy link
Author

fxxjdedd commented Dec 6, 2020

@pissang
Copy link
Contributor

pissang commented Dec 6, 2020

After some test. Seems the demo works after importing bar chart

import "echarts/lib/chart/bar";

Going to find out why.

@pissang pissang removed the pending We are not sure about whether this is a bug/new feature. label Dec 6, 2020
@pissang pissang added this to the 5.0.1 milestone Dec 6, 2020
@pissang pissang added the FAQ v5 Frequent Asked Questions (v5) label Dec 6, 2020
@tyfoan
Copy link

tyfoan commented Dec 21, 2020

After some test. Seems the demo works after importing bar chart

import "echarts/lib/chart/bar";

Going to find out why.

worked for me
import 'echarts/lib/coord/cartesian/Grid';
import 'echarts/lib/coord/cartesian/Axis2D';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug en This issue is in English FAQ v5 Frequent Asked Questions (v5)
Projects
None yet
Development

No branches or pull requests

4 participants