From 43fd681f76c681f03bef7e166db6ba1953f3a377 Mon Sep 17 00:00:00 2001 From: wangshiming Date: Mon, 18 Apr 2022 14:26:24 +0800 Subject: [PATCH] fix bug --- .../busitable/pillar/pillar.component.ts | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/src/app/routes/datatable/components/busitable/pillar/pillar.component.ts b/src/app/routes/datatable/components/busitable/pillar/pillar.component.ts index ddb0569b..1a5e9ae1 100644 --- a/src/app/routes/datatable/components/busitable/pillar/pillar.component.ts +++ b/src/app/routes/datatable/components/busitable/pillar/pillar.component.ts @@ -1,3 +1,13 @@ +/* + * @Description : + * @Version : 1.0 + * @Author : Shiming + * @Date : 2022-04-06 14:32:03 + * @LastEditors : Shiming + * @LastEditTime : 2022-04-18 14:25:25 + * @FilePath : \\tms-obc-web\\src\\app\\routes\\datatable\\components\\busitable\\pillar\\pillar.component.ts + * Copyright (C) 2022 huzhenhong. All rights reserved. + */ import { Component, ElementRef, Input, NgZone, OnChanges, OnInit, SimpleChanges, ViewChild } from '@angular/core'; import { Chart } from '@antv/g2'; import { DataService } from 'src/app/routes/datatable/services/data.service'; @@ -45,10 +55,16 @@ export class BusitablePillarComponent implements OnInit, OnChanges { this.chart.data(this.chartData); + const itemTpl = ` +
+ 业绩量:  {value} +
+` this.chart.tooltip({ + showTitle: true, showMarkers: false, - }); - + itemTpl: itemTpl + }); this.chart.interval().position('time*number'); this.chart.render(); }