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

Echarts 5 Support #491

Closed
lz1998 opened this issue Dec 4, 2020 · 15 comments
Closed

Echarts 5 Support #491

lz1998 opened this issue Dec 4, 2020 · 15 comments

Comments

@lz1998
Copy link

lz1998 commented Dec 4, 2020

https://echarts.apache.org/next/zh/api.html#echarts

@wmn1525
Copy link

wmn1525 commented Dec 16, 2020

5.0 echars库的加载方式变了
var echarts = require('echarts'); // import echarts from 'echarts/lib/echarts'

@Moxie1776
Copy link

https://echarts.apache.org/next/zh/api.html#echarts

Agreed. V5 has some very nice perk's I would like to be using.

@itaken
Copy link

itaken commented Jan 6, 2021

5.0 echars库的加载方式变了
var echarts = require('echarts'); // import echarts from 'echarts/lib/echarts'

看到也可以这样引入 import * as echarts from 'echarts'

@Moxie1776
Copy link

5.0 echars库的加载方式变了
var echarts = require('echarts'); // import echarts from 'echarts/lib/echarts'

看到也可以这样引入 import * as echarts from 'echarts'

That is already required for echarts 4.x and does not fix the 5.0 compatibility problems.

@Jaffsterz
Copy link

Would be really useful to get an updated on any plans to support eCharts 5.

NPM reports a version called 5.0.0-beta.0 - should we be using that? I don't see any information in the "Releases" section of github for this project so don't know what 5.0.0-beta.0 is?

@ambit-tsai
Copy link

Would be really useful to get an updated on any plans to support eCharts 5.

NPM reports a version called 5.0.0-beta.0 - should we be using that? I don't see any information in the "Releases" section of github for this project so don't know what 5.0.0-beta.0 is?

5.0 echars库的加载方式变了
var echarts = require('echarts'); // import echarts from 'echarts/lib/echarts'

https://echarts.apache.org/next/zh/api.html#echarts

Agreed. V5 has some very nice perk's I would like to be using.

I recommend echarts-for-vue which supports ECharts 5, and it is compatible with Vue 3 and 2.

@Moxie1776
Copy link

Would be really useful to get an updated on any plans to support eCharts 5.

NPM reports a version called 5.0.0-beta.0 - should we be using that? I don't see any information in the "Releases" section of github for this project so don't know what 5.0.0-beta.0 is?

That still uses 4.x as a core instead of Echarts 5

@chris-envas
Copy link

If you use Echart5.0, so you need change require module method

import * as echarts from 'echarts'

@lesovsky
Copy link

Tried to upgrade ECharts in my project. Updated imports accordingly to ECharts 5 upgrade guide and almost all look working.
But in console I got the errors:

"import echarts from 'echarts/lib/echarts'" is not supported anymore. Use "import * as echarts from 'echarts/lib/echarts'" instead;" 

due to old-style import in components/ECharts.vue

@KSDaemon
Copy link

@lesovsky Great! How about PR? May be we can push this out of the ice :)

@lesovsky
Copy link

Not sure about PR, I have no strong skills in JS and not completely sure that my onliner will not broke something.

@anka
Copy link

anka commented Feb 1, 2021

Any plans for official support via the vue-echarts library itself?

@Justineo
Copy link
Member

Justineo commented Feb 1, 2021

@anka Yes we plan to add ECharts 5 and Vue 3 support in the next release.

@Moxie1776
Copy link

@anka Yes we plan to add ECharts 5 and Vue 3 support in the next release.

Can you give us an idea when that might be?

@Justineo
Copy link
Member

Hi everyone, sorry for the late response.

Based on Apache ECharts 5, vue-echarts@6 is published with support for both Vue 2 and 3. See our latest documentation here.

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

No branches or pull requests