|
@@ -119,7 +119,7 @@ import {
|
|
} from '@/api/portrait.js';
|
|
} from '@/api/portrait.js';
|
|
import { ref, onMounted } from 'vue';
|
|
import { ref, onMounted } from 'vue';
|
|
|
|
|
|
-import { createChart, numform } from './tool';
|
|
|
|
|
|
+import { createChart, numform, chart } from './tool';
|
|
import config from './config';
|
|
import config from './config';
|
|
|
|
|
|
const appList = ref([]);
|
|
const appList = ref([]);
|
|
@@ -311,6 +311,21 @@ const createPublisher = (list = []) => {
|
|
};
|
|
};
|
|
p.xAxis[0].data = keys;
|
|
p.xAxis[0].data = keys;
|
|
p.series[0].data = values;
|
|
p.series[0].data = values;
|
|
|
|
+ p.series[0].itemStyle = {
|
|
|
|
+ normal: {
|
|
|
|
+ borderRadius: [5, 5, 0, 0],
|
|
|
|
+ color: new chart.graphic.LinearGradient(0, 0, 1, 0, [
|
|
|
|
+ {
|
|
|
|
+ offset: 0,
|
|
|
|
+ color: '#8ba6d6'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ offset: 1,
|
|
|
|
+ color: '#a085ee'
|
|
|
|
+ }
|
|
|
|
+ ])
|
|
|
|
+ }
|
|
|
|
+ };
|
|
publisherChart = createChart(
|
|
publisherChart = createChart(
|
|
publisher.value,
|
|
publisher.value,
|
|
publisher.value.offsetWidth,
|
|
publisher.value.offsetWidth,
|
|
@@ -350,6 +365,21 @@ const createProgram = (list = []) => {
|
|
p.series[0].label.offset = [50, 0];
|
|
p.series[0].label.offset = [50, 0];
|
|
p.series[0].label.position = 'right';
|
|
p.series[0].label.position = 'right';
|
|
p.series[0].label.align = 'right';
|
|
p.series[0].label.align = 'right';
|
|
|
|
+ p.series[0].itemStyle = {
|
|
|
|
+ normal: {
|
|
|
|
+ borderRadius: [0, 5, 5, 0],
|
|
|
|
+ color: new chart.graphic.LinearGradient(0, 0, 1, 0, [
|
|
|
|
+ {
|
|
|
|
+ offset: 0,
|
|
|
|
+ color: '#8ba6d6'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ offset: 1,
|
|
|
|
+ color: '#a085ee'
|
|
|
|
+ }
|
|
|
|
+ ])
|
|
|
|
+ }
|
|
|
|
+ };
|
|
p.series[0].label.formatter = data => {
|
|
p.series[0].label.formatter = data => {
|
|
if (isNaN(data.value)) return '';
|
|
if (isNaN(data.value)) return '';
|
|
return numform(data.value);
|
|
return numform(data.value);
|