Comments (7)
- check if you have correctly installed echarts and imported in
.angular-cli.json
- check if your project is involved with other module resolver, such as
webpack
orsystemjs
from ngx-echarts.
我也存在这个问题,换了好多echarts版本 都不行。angular-cli.json里确定是加入了echarts的 死活找不到原因
重新测试发现可能是angular的版本原因,angular-cli新生成的项目都是可以运行的,angular对应版本是2.4.0,但是自己项目已经和官方一致是4.2.2了
再补充一下,可以修改[email protected]的配置来解决问题。修改node_modules/@angular/cli/models/webpack-configs/common.js
plugins: [ // 新增这个 new webpack.ProvidePlugin({ echarts: 'echarts' }) ]
from ngx-echarts.
我也有这个问题...想请教一下,我安装完毕之后ngx-echarts这个文件的directive里面没有angular-echarts.directive..ts文件...但是有一个angular-echarts.directive.d.ts...里面export了AngularEchartsDirective,里面的代码和你的angular-echarts.directive.ts的差很多...所以...怎么办...
from ngx-echarts.
@shao37142 安装后的目录ngx-echarts目录里面,你不需要关心directive目录。
按照README中的说明,根据你的项目类型修改配置即可。
from ngx-echarts.
@xieziyu 主要我是小白...想搞明白这个包到底是个什么原理...弄好了,感谢...
from ngx-echarts.
在node_modules里新增这个 new webpack.ProvidePlugin({ echarts: 'echarts' }) 的话别人如果下代码更改 每次都要在node里添加这个啊。。 有没有其他的方法可以解决呢
from ngx-echarts.
from ngx-echarts.
Related Issues (20)
- [loading] property binding is not working . HOT 9
- chart area mousemove HOT 1
- visualMap issues HOT 1
- display context menu only when right clicked on bar HOT 4
- Adding Events from `echarts-gl` into `ngx-echarts` HOT 2
- [HELP NEEDED] "Error: yAxis "0" not found" console error for mixed line and Bar graph. HOT 1
- Can't bind to 'options' since it isn't a known property of 'div'? HOT 3
- force directed graph demo broken HOT 5
- Feature: Function wrapper for the standalone ECharts provider configuration
- heatmap not working using ngx-echarts 16.0.0, but working fine when using echart 5.4.2 directly HOT 1
- [SOLVED] I've got custom theme.js and dunno how to import it into angular app HOT 3
- 实参类型 unknown 不可分配给形参类型 ECElementEvent HOT 1
- After updating from 16.0.0 to 16.1.0 I get compilation errors using angular HOT 9
- Width and Height 100% of parent container
- 'legendselectchanged' event has no Output HOT 3
- Make the directive standalone HOT 1
- echarts/core -> Implementation of registerMap doesn't exists HOT 3
- Ngx-Echarts Animation not working Initially HOT 3
- dispatchAction not updating chart if echart directive is used in ng-template
- Most of EChartsOption and connected fields ts types are not exported HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-echarts.