|
|
|
@ -4,7 +4,7 @@
|
|
|
|
|
* @Author: sueRimn |
|
|
|
|
* @Date: 2020-09-02 16:21:18 |
|
|
|
|
* @LastEditors: sueRimn |
|
|
|
|
* @LastEditTime: 2020-09-10 10:56:58 |
|
|
|
|
* @LastEditTime: 2020-09-10 14:31:18 |
|
|
|
|
*/ |
|
|
|
|
import { Component, OnInit, ViewChild } from '@angular/core'; |
|
|
|
|
import { Router } from '@angular/router'; |
|
|
|
@ -25,6 +25,7 @@ export class DeleteTwoComponent implements OnInit {
|
|
|
|
|
datayuey=[210, 160, 150, 140, 130, 120, 110,120,150]; |
|
|
|
|
datanianx=[2019,2020]; |
|
|
|
|
dataniany=[201,174] |
|
|
|
|
tiaoshiPao:any//气泡
|
|
|
|
|
|
|
|
|
|
constructor(private router: Router,public snackBar: MatSnackBar,private adapter: DateAdapter<any>,public echartsData:EchartsDataService) { } |
|
|
|
|
/* @ViewChild('appEcharts')appEcharts :echartsComponent; //父组件中获得子组件的引用 |
|
|
|
@ -32,7 +33,8 @@ export class DeleteTwoComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
ngOnInit(): void { |
|
|
|
|
this.dateInit() |
|
|
|
|
this.bianli() |
|
|
|
|
this.tiaoshiPao=this.echartsData.qipao(this.tiaoshiPao,this.datayuey,this.datayuex) |
|
|
|
|
//this.bianli()
|
|
|
|
|
window.setTimeout(()=>{ |
|
|
|
|
|
|
|
|
|
this.headZhexian('Line','删除数量总统计',this.datayuex,this.datayuey) |
|
|
|
@ -69,19 +71,7 @@ export class DeleteTwoComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
zhiNameData = ["浦东支队","黄埔支队","徐汇支队","长宁支队","静安支队","普陀支队","虹口支队","杨浦支队","闵行支队","宝山支队","嘉定支队","松江支队","金山支队","崇明支队"] |
|
|
|
|
zhiNumData = [200,190,180,170,160,150,140,130,120,110,100,90,80,70] |
|
|
|
|
tiaoshiPao:any |
|
|
|
|
//气泡提示数据获取
|
|
|
|
|
bianli(){ |
|
|
|
|
var arrshuzu='['; |
|
|
|
|
for(var i=0;i<this.datayuey.length;i++){ |
|
|
|
|
arrshuzu+='{"value":'+this.datayuey[i]+',"coord":['+i+','+this.datayuey[i]+'],"name":'+'"'+this.datayuex[i]+'"'+'},' |
|
|
|
|
} |
|
|
|
|
arrshuzu=arrshuzu.substring(0,arrshuzu.length-1) |
|
|
|
|
arrshuzu+=']' |
|
|
|
|
this.tiaoshiPao=JSON.parse(arrshuzu) |
|
|
|
|
console.log(this.tiaoshiPao) |
|
|
|
|
//return tishiPao
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//查询数据
|
|
|
|
|
years:any = [] |
|
|
|
@ -229,7 +219,7 @@ export class DeleteTwoComponent implements OnInit {
|
|
|
|
|
/* backgroundColor:'rgba(255,255,255,1)',//通过设置rgba调节背景颜色与透明度 |
|
|
|
|
borderWidth:'1', |
|
|
|
|
borderRadius :'0', */ |
|
|
|
|
position: this.echartsData.tableTooltipNoShow2 |
|
|
|
|
position:divid=='Line'? this.echartsData.tableTooltipNoShow2:false |
|
|
|
|
}, |
|
|
|
|
xAxis: { |
|
|
|
|
type: 'category', |
|
|
|
|