Skip to content

5.0 broken when using demand import #13764

Closed
@fxxjdedd

Description

@fxxjdedd

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

Metadata

Metadata

Assignees

Labels

FAQ v5Frequent Asked Questions (v5)bugenThis issue is in English

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions