Comments (9)
@sadydai 你可以用http异步加载json文件,然后再使用echarts.registerMap注册。这些操作不需要ngx-echarts的参与
from ngx-echarts.
@SevenLonelyDay echarts本身支持的图表,都可以的。
from ngx-echarts.
恩,搞好了。三克油(^__^) 嘻嘻……
from ngx-echarts.
@SevenLonelyDay 你好,请问你的地图是怎么添加的啊(?_?)
from ngx-echarts.
@xieziyu 要如何引入地图的json 文件? echarts.registerMap()这个怎么用的?
from ngx-echarts.
@xieziyu 嗯呢, OK了。谢谢
from ngx-echarts.
@xieziyu,你好,非常感谢你的作品!
请问有办法在组件的component.ts之中获取到echarts对象的引用,从而更加方便的实现调用echarts.registerMap注册地图以及其它方法和属性吗?
可以通过(chartInit)="onChartInit($event)"获取到chartInstance,那么有没有类似的方法或指令可以实现获取echarts对象呢?
谢谢帮助!麻烦你了。
from ngx-echarts.
@JuniorTour 谢谢。 echarts是全局对象,所以可以直接使用。Typescript中,可以在需要用到的ts文件中:
declare var echarts: any;
PS: 你可以自己封装一个service用于return 全局的echarts对象。这样就不必每个文件都declare了。
from ngx-echarts.
@SevenLonelyDay 求demo,肿么搞滴,如何引入省份地图?
from ngx-echarts.
Related Issues (20)
- 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
- Use Custom Theme created Apache Echarts Theme Builder HOT 2
- Tooltip - Slow Performance
- Import a echart theme with echarts v5.5.0 and ngx-echarts v15.0.3
- Angular 17 ReferenceError: window is not defined 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.