Giter Site home page Giter Site logo

Comments (9)

xieziyu avatar xieziyu commented on May 17, 2024 2

@sadydai 你可以用http异步加载json文件,然后再使用echarts.registerMap注册。这些操作不需要ngx-echarts的参与

from ngx-echarts.

xieziyu avatar xieziyu commented on May 17, 2024

@SevenLonelyDay echarts本身支持的图表,都可以的。

from ngx-echarts.

SevenLonelyDay avatar SevenLonelyDay commented on May 17, 2024

恩,搞好了。三克油(^__^) 嘻嘻……

from ngx-echarts.

fei-hao avatar fei-hao commented on May 17, 2024

@SevenLonelyDay 你好,请问你的地图是怎么添加的啊(?_?)

from ngx-echarts.

sadydai avatar sadydai commented on May 17, 2024

@xieziyu 要如何引入地图的json 文件? echarts.registerMap()这个怎么用的?

from ngx-echarts.

sadydai avatar sadydai commented on May 17, 2024

@xieziyu 嗯呢, OK了。谢谢

from ngx-echarts.

JuniorTour avatar JuniorTour commented on May 17, 2024

@xieziyu,你好,非常感谢你的作品!

请问有办法在组件的component.ts之中获取到echarts对象的引用,从而更加方便的实现调用echarts.registerMap注册地图以及其它方法和属性吗?

可以通过(chartInit)="onChartInit($event)"获取到chartInstance,那么有没有类似的方法或指令可以实现获取echarts对象呢?

谢谢帮助!麻烦你了。

from ngx-echarts.

xieziyu avatar xieziyu commented on May 17, 2024

@JuniorTour 谢谢。 echarts是全局对象,所以可以直接使用。Typescript中,可以在需要用到的ts文件中:
declare var echarts: any;

PS: 你可以自己封装一个service用于return 全局的echarts对象。这样就不必每个文件都declare了。

from ngx-echarts.

fanslin avatar fanslin commented on May 17, 2024

@SevenLonelyDay 求demo,肿么搞滴,如何引入省份地图?

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.