All Projects → twp0217 → ngx-echarts

twp0217 / ngx-echarts

Licence: other
Apache ECharts component for Angular(基于 Angular 的 Apache ECharts 组件)

Programming Languages

typescript
32286 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
Less
1899 projects

Projects that are alternatives of or similar to ngx-echarts

Ngx Echarts
An angular (ver >= 2.x) directive for ECharts (ver >= 3.x)
Stars: ✭ 820 (+900%)
Mutual labels:  ng2, ngx, echarts
ngx-echarts-starter
A starter demo project for ngx-echarts
Stars: ✭ 29 (-64.63%)
Mutual labels:  ng, echarts, ngx-echarts
Ngx Cookie Service
Angular (4.2+ ...11) service for cookies. Originally based on the `ng2-cookies` library.
Stars: ✭ 363 (+342.68%)
Mutual labels:  ng, ngx
Ngx Mask
Angular Plugin to make masks on form fields and html elements.
Stars: ✭ 772 (+841.46%)
Mutual labels:  ng, ngx
awesome-angular
💖 A list of awesome Angular (2️⃣➕) resources
Stars: ✭ 61 (-25.61%)
Mutual labels:  ng2, ngx
ngx-ui-switch
Angular UI Switch component
Stars: ✭ 109 (+32.93%)
Mutual labels:  ng, ngx
ng2-go-top-button
A simple customizable go-top-button component for Angular projects.
Stars: ✭ 18 (-78.05%)
Mutual labels:  ng2, ng
Ngx Md
Angular(ngx) directive for parsing markdown content in your web application.
Stars: ✭ 258 (+214.63%)
Mutual labels:  ng2, ng
Ngx Date Fns
⏳ date-fns pipes for Angular 2.0 and above ⏳
Stars: ✭ 135 (+64.63%)
Mutual labels:  ng2, ngx
ng-elm
Write Angular components in Elm.
Stars: ✭ 41 (-50%)
Mutual labels:  ng2, ngx
Angular2 Carousel
An lightweight , touchable and responsive library to create a carousel for angular 2 / 4 / 5
Stars: ✭ 26 (-68.29%)
Mutual labels:  ng2, ngx
angular2-signature-pad
Signature pad component for Angular 2.x and above.
Stars: ✭ 17 (-79.27%)
Mutual labels:  ng2, ng
Ng2 Breadcrumbs
A breadcrumb service for the Angular 7 router
Stars: ✭ 61 (-25.61%)
Mutual labels:  ng2
Truly Ui
Truly-UI - Web Angular UI Components for Desktop Applications (Electron, NW, APP JS)
Stars: ✭ 195 (+137.8%)
Mutual labels:  ng2
Ngautocomplete
Light-weight autocomplete component for Angular.
Stars: ✭ 52 (-36.59%)
Mutual labels:  ng2
Ng2 Sweetalert2
A sweetalert2 service for angular2.
Stars: ✭ 49 (-40.24%)
Mutual labels:  ng2
angular-inviewport
A simple lightweight library for Angular with no other dependencies that detects when an element is within the browser viewport and adds a "sn-viewport-in" or "sn-viewport-out" class to the element
Stars: ✭ 72 (-12.2%)
Mutual labels:  ngx
Ng2 Nouislider
Angular2 noUiSlider directive
Stars: ✭ 181 (+120.73%)
Mutual labels:  ng2
Ng2 Ace
A basic ace editor directive for angular 2.
Stars: ✭ 33 (-59.76%)
Mutual labels:  ng2
Angular Google Maps
Angular 2+ Google Maps Components
Stars: ✭ 1,982 (+2317.07%)
Mutual labels:  ng2

ngx-echarts

简介

Apache ECharts component for Angular(基于 Angular 的 Apache ECharts 组件)

安装

npm install echarts @twp0217/ngx-echarts --save

使用

  • 安装依赖包:echarts@twp0217/ngx-echarts
npm install echarts @twp0217/ngx-echarts --save
  • 在module导入NgxEchartsModule
import { NgxEchartsModule } from '@twp0217/ngx-echarts';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,
    NgxEchartsModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }
  • 准备图表数据
option = {
  title: {
    text: 'ECharts 入门示例'
  },
  tooltip: {},
  legend: {
    data: ['销量']
  },
  xAxis: {
    data: ["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"]
  },
  yAxis: {},
  series: [{
    name: '销量',
    type: 'bar',
    data: [5, 20, 36, 10, 10, 20]
  }]
};
  • 在模板页面使用
<ngx-echarts [option]="option"></ngx-echarts>

API

名称 说明 类型 默认值
[option] 图表的配置项和数据 EChartsOption -
[theme] 应用的主题 EChartsTheme -
[initOpts] 初始化附加参数 EChartsInitOpts -
[setOptionOpts] 设置图表的配置项和数据附加参数 EChartsSetOptionOpts -
[autoResize] 自适应图表 boolean false
[loading] 是否显示加载动画 boolean -
[loadingConfig] 加载动画配置 EChartsLoadingConfig -
[group] 图表的分组,用于联动 string -
(onChartInit) 图表初始化时的回调 (echartsInstance: EchartsInstance) => void -
[onEvents] 图表事件 EchartsOnEvents -

支持

  • 如果项目对你有帮助,请点颗星,谢谢。
  • 如果你对项目有想法、问题、BUG,欢迎讨论。
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].