Comments (8)
@hevan
对于ng2-admin,你需要在 config/webpack.common.js
中的ProvidePlugin
配置里面添加echarts的引用:
new webpack.ProvidePlugin({
...,
echarts: "echarts"
}),
from ngx-echarts.
Thanks,
但是我用的是ng2-admin 当前的版本,采用的是angular-cli 方式 ,采用的@ngtools,我需要在对应的@ngtools 增加么?angular-cli.json 已经添加
"../node_modules/echarts/dist/echarts.min.js"
from ngx-echarts.
@hevan 如果是当前采用angular-cli的版本,则不需要额外的配置。对于这个不显示的问题,需要检查你的参数了,是否传入ngx-echarts的options为空?
from ngx-echarts.
@xieziyu options 有值,Echarts 没有渲染,不知道是不是用的angular-cli , 1.3.x的原因
from ngx-echarts.
@hevan angular-cli版本对此没有影响,我们自己的项目中用的也是1.3.x版本。需要看具体的代码片段来确定问题
from ngx-echarts.
哥们,你怎么解决的。同样的问题。没有渲染
from ngx-echarts.
同上,同样的问题。 options 有值,Echarts 没有渲染 。 怎么解决的 ,求回复
from ngx-echarts.
我的问题解决了 ,可以了 。 写了高度的css 文件忘记引入到@component 里了,偶然写为行内样式可以了。
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.