Skip to content

Commit

Permalink
feat(maturity): add style support for radar chart
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed May 8, 2020
1 parent 0bcd449 commit aba278f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<div class="ledge-radar chart" #chart>
<div class="ledge-radar chart" #chart [ngStyle]="styles">

</div>
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@ import { AfterViewInit, Component, ElementRef, Input, OnChanges, OnInit, SimpleC
import * as echarts from 'echarts';
import LedgeChartConverter from '../../components/model/ledge-chart-converter';
import { LedgeListItem } from '../../components/model/ledge-chart.model';
import { NgStyle } from '@angular/common';

@Component({
selector: 'ledge-radar',
templateUrl: './ledge-radar.component.html',
styleUrls: ['./ledge-radar.component.scss'],
})
export class LedgeRadarComponent implements OnInit, OnChanges, AfterViewInit {
@Input()
data: LedgeListItem[];

@Input()
config: any;
@Input() data: LedgeListItem[];
@Input() styles: NgStyle;
@Input() config: any;

@ViewChild('chart', {static: false}) chart: ElementRef;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="ledge-maturity">
<div class="left" *ngIf="chartData">
<ledge-radar [data]="chartData" [config]="config"></ledge-radar>
<ledge-radar [styles]="{width: '640px', height: '640px'}" [data]="chartData" [config]="config"></ledge-radar>
</div>

<div class="right" *ngIf="ratingData">
Expand Down

0 comments on commit aba278f

Please sign in to comment.