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 is not defined #67

Open
lvyulong opened this issue May 3, 2017 · 7 comments
Open

echarts is not defined #67

lvyulong opened this issue May 3, 2017 · 7 comments

Comments

@lvyulong
Copy link

lvyulong commented May 3, 2017

No description provided.

@LaureMonlouis
Copy link

LaureMonlouis commented May 3, 2017

I have the same trubble : ReferenceError: echarts is not defined

It comes from /dist/angular-echarts.js
var options;
getSizes(scope.config);
if (!chart) {
chart = echarts.init(ndWrapper, theme.get(scope.config.theme || 'macarons'));
}

@wangpenghui
Copy link

ReferenceError: echarts is not defined,i also found

@AllenZhang34
Copy link

I have the same trubble : ReferenceError: echarts is not defined

@wangshijun
Copy link
Owner

@lvyulong @LaureMonlouis did you included echarts and angular lib as docs/index.html ? I that was done properly, this error should not exists.

If the error still exists, please provided your detailed code

@bainana
Copy link

bainana commented Oct 10, 2017

如果是只安装了angular-echarts,还需要再安装下echarts,这样就不会报错了。

@SyedWasiHaider
Copy link

For anyone else who hates themselves and still uses AngularJS in 2018, the way to fix this is to make sure the window object has access to echarts.

So simply do:

window.echarts = require 'echarts/dist/echarts.js'

@jimmy240341
Copy link

Similar problem was happened, and fixed it by changing the loaded file from echarts.js to ceharts-all.js.

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

8 participants