| | |
| | | this.chartContainer = this.$echarts.init(document.getElementById(this.chartContainerId)) |
| | | signageApi.getDayUtilizationRateApi(this.currentProductionId) |
| | | .then(res => { |
| | | console.log('res==========', res) |
| | | if (!res.success) return |
| | | that.initChart(res.result) |
| | | }) |
| | |
| | | const option = { |
| | | tooltip: { |
| | | show: true, |
| | | trigger: 'item', |
| | | formatter: params => `${params.name}:${params.value}%` |
| | | trigger: 'axis', |
| | | formatter: function(params) { |
| | | return '<span style="display:inline-block; width:10px; height:10px; border-radius:100px; margin-right:5px; background:' + params[0].color + '"></span> ' + params[0].name + '   ' + '<span style="font-weight: bold"> ' + params[0].value + '%' + '</span>' |
| | | } |
| | | }, |
| | | legend: { |
| | | show: false, |