mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-01-05 17:18:50 +01:00
feat(charts): update echarts library
This commit is contained in:
parent
edb098705f
commit
e12b77174d
5 changed files with 47 additions and 84 deletions
|
|
@ -12,7 +12,7 @@ import { D3PieComponent } from './d3/pie/pie.component';
|
|||
import { EchartsLineComponent } from './echarts/line/line.component';
|
||||
import { EchartsPieComponent } from './echarts/pie/pie.component';
|
||||
import { EchartsBarComponent } from './echarts/bar/bar.component';
|
||||
import { AngularEchartsModule } from 'angular2-echarts';
|
||||
import { AngularEchartsModule } from 'ngx-echarts';
|
||||
import { NgxChartsModule } from '@swimlane/ngx-charts';
|
||||
import { ChartsModule as Ng2Charts } from 'ng2-charts/ng2-charts';
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@ import { Component } from '@angular/core';
|
|||
@Component({
|
||||
selector: 'ngx-echarts-bar',
|
||||
template: `
|
||||
<div echarts [options]="barChartOptions" class="echart"></div>
|
||||
<div echarts [options]="options" class="echart"></div>
|
||||
`,
|
||||
})
|
||||
export class EchartsBarComponent {
|
||||
|
||||
barChartOptions = {
|
||||
options = {
|
||||
|
||||
color: ['#3398DB'],
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,13 @@
|
|||
@import '../../../@theme/styles/variables';
|
||||
|
||||
@include nga-install-component() {
|
||||
display: block;
|
||||
|
||||
ngx-echarts-pie, ngx-echarts-bar, ngx-echarts-line {
|
||||
display: block;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/deep/ .echart {
|
||||
height: calc(#{nga-theme(card-height-xmedium)} - 50px);
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue