Giter Site home page Giter Site logo

Comments (8)

xieziyu avatar xieziyu commented on May 21, 2024

@hevan
对于ng2-admin,你需要在 config/webpack.common.js 中的ProvidePlugin配置里面添加echarts的引用:

new webpack.ProvidePlugin({
  ...,
  echarts: "echarts"
}),

from ngx-echarts.

hevan avatar hevan commented on May 21, 2024

Thanks,
但是我用的是ng2-admin 当前的版本,采用的是angular-cli 方式 ,采用的@ngtools,我需要在对应的@ngtools 增加么?angular-cli.json 已经添加
"../node_modules/echarts/dist/echarts.min.js"

from ngx-echarts.

xieziyu avatar xieziyu commented on May 21, 2024

@hevan 如果是当前采用angular-cli的版本,则不需要额外的配置。对于这个不显示的问题,需要检查你的参数了,是否传入ngx-echarts的options为空?

from ngx-echarts.

hevan avatar hevan commented on May 21, 2024

@xieziyu options 有值,Echarts 没有渲染,不知道是不是用的angular-cli , 1.3.x的原因

from ngx-echarts.

xieziyu avatar xieziyu commented on May 21, 2024

@hevan angular-cli版本对此没有影响,我们自己的项目中用的也是1.3.x版本。需要看具体的代码片段来确定问题

from ngx-echarts.

jianping-grp avatar jianping-grp commented on May 21, 2024

哥们,你怎么解决的。同样的问题。没有渲染

from ngx-echarts.

monkey-yu avatar monkey-yu commented on May 21, 2024

同上,同样的问题。 options 有值,Echarts 没有渲染 。 怎么解决的 ,求回复

from ngx-echarts.

monkey-yu avatar monkey-yu commented on May 21, 2024

我的问题解决了 ,可以了 。 写了高度的css 文件忘记引入到@component 里了,偶然写为行内样式可以了。

from ngx-echarts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.