Change renderer to svg.

This commit is contained in:
Miguel Medeiros 2021-09-07 17:54:27 -03:00
parent 9020c618f0
commit 34695146ee
No known key found for this signature in database
GPG Key ID: 819EDEE4673F3EBB
4 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<div class="fee-distribution-chart" *ngIf="mempoolVsizeFeesOptions; else loadingFees">
<div echarts [options]="mempoolVsizeFeesOptions"></div>
<div echarts [initOpts]="mempoolVsizeFeesInitOptions" [options]="mempoolVsizeFeesOptions"></div>
</div>
<ng-template #loadingFees>

View File

@ -14,6 +14,9 @@ export class FeeDistributionGraphComponent implements OnInit, OnChanges {
@Input() left: number | string = 30;
mempoolVsizeFeesOptions: any;
mempoolVsizeFeesInitOptions = {
renderer: 'svg'
};
constructor() { }

View File

@ -1 +1 @@
<div class="echarts" echarts [options]="mempoolStatsChartOption"></div>
<div class="echarts" echarts [initOpts]="mempoolStatsChartInitOption" [options]="mempoolStatsChartOption"></div>

View File

@ -19,6 +19,9 @@ export class IncomingTransactionsGraphComponent implements OnInit, OnChanges {
@Input() template: ('widget' | 'advanced') = 'widget';
mempoolStatsChartOption: EChartsOption = {};
mempoolStatsChartInitOption = {
renderer: 'svg'
};
windowPreference: string;
constructor(