在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:ngx-echarts开源软件地址:https://gitee.com/twp0217/ngx-echarts开源软件介绍:ngx-echarts简介Apache ECharts component for Angular(基于 Angular 的 Apache ECharts 组件) 安装npm install echarts @twp0217/ngx-echarts --save 使用
npm install echarts @twp0217/ngx-echarts --save
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
支持
|
请发表评论