fix bug
This commit is contained in:
@ -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 = `
|
||||
<div style="padding: 15px; color: red">
|
||||
业绩量: {value}
|
||||
</div>
|
||||
`
|
||||
this.chart.tooltip({
|
||||
showTitle: true,
|
||||
showMarkers: false,
|
||||
itemTpl: itemTpl
|
||||
});
|
||||
|
||||
this.chart.interval().position('time*number');
|
||||
this.chart.render();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user