ngx-echarts-for-common
v1.0.9
Published
传入数据格式 example: data = { title: "生化:红细胞分布密度", legendData: ["红细胞分布密度"], xAxisData: ["2017-11-01", "2017-12-01", "2017-12-05"], seriesData: [
Downloads
13
Readme
传入数据格式 example: data = { title: "生化:红细胞分布密度", legendData: ["红细胞分布密度"], xAxisData: ["2017-11-01", "2017-12-01", "2017-12-05"], seriesData: [ { name: '红细胞分布密度', type: 'line', stack: '总量', data: [12.4, 13.4, 15.1] } ] }
npm install echarts npm install ngx-echarts npm install ngx-echarts-for-common
import {NgxEchartsForCommonComponent} from 'ngx-echarts-for-common'; import { NgxEchartsModule } from 'ngx-echarts';
imports: [ ..., NgxEchartsModule ], declarations: [ ..., NgxEchartsForCommonComponent, .... ]
3.<app-ngx-echarts-for-common [data]="data">