提交 1fd134f1 authored 作者: yanpeng's avatar yanpeng

export细节修改

上级 9a51cfe7
...@@ -390,7 +390,7 @@ ...@@ -390,7 +390,7 @@
</custom-container> </custom-container>
</el-col> </el-col>
<el-col :span="16"> <el-col :span="16">
<custom-container title="实体清单数量增长趋势" :titleIcon="qushiIcon" height="540px"> <custom-container title="制裁清单数量增长趋势" :titleIcon="qushiIcon" height="540px">
<template #header-right> <template #header-right>
<div style="display: flex; align-items: center; gap: 16px"> <div style="display: flex; align-items: center; gap: 16px">
<el-checkbox v-model="trendChecked" label="50%规则" size="large" /> <el-checkbox v-model="trendChecked" label="50%规则" size="large" />
...@@ -1051,7 +1051,7 @@ const fetchTrendData = async () => { ...@@ -1051,7 +1051,7 @@ const fetchTrendData = async () => {
}); });
if (res && res[0] && res[0].yearDomainCount) { if (res && res[0] && res[0].yearDomainCount) {
trendOption.value = processYearDomainCountData(res[0].yearDomainCount); trendOption.value = processYearDomainCountData(res[0].yearDomainCount);
trendChart.interpret({ type: "柱状图", name: "实体清单数量增长趋势", data: res[0].yearDomainCount }); trendChart.interpret({ type: "柱状图", name: "制裁清单数量增长趋势", data: res[0].yearDomainCount });
} }
} catch (error) { } catch (error) {
console.error("获取趋势图数据失败:", error); console.error("获取趋势图数据失败:", error);
......
import * as echarts from "echarts"; import * as echarts from "echarts";
import chinaJson from "./China.json"; import chinaJson from "./China.json";
import _ from "lodash"; import _ from "lodash";
import { name } from "dayjs/locale/zh-cn";
//饼图 //饼图
export function getPieOption(data, title) { export function getPieOption(data, title) {
let option = { let option = {
...@@ -1006,7 +1007,7 @@ export const getMultipleBarChart_m = object => { ...@@ -1006,7 +1007,7 @@ export const getMultipleBarChart_m = object => {
margin: 20 margin: 20
}, },
axisLabel: { axisLabel: {
formatter: "{value}", formatter: "{value}",
color: "rgba(95, 101, 108, 1)", color: "rgba(95, 101, 108, 1)",
margin: 20 margin: 20
}, },
...@@ -1022,6 +1023,21 @@ export const getMultipleBarChart_m = object => { ...@@ -1022,6 +1023,21 @@ export const getMultipleBarChart_m = object => {
}, },
yAxis: { yAxis: {
type: "value", type: "value",
name: "数量",
nameLocation: "end",
nameGap: 20,
nameRotate: 0,
nameTextStyle: {
color: "#666",
fontFamily: "Microsoft YaHei",
fontWeight: 400,
fontSize: 14,
lineHeight: 14,
letterSpacing: 0,
align: "right",
verticalAlign: "bottom",
padding: [0, 8, 0, 0]
},
splitNumber: 5, splitNumber: 5,
alignTicks: false, alignTicks: false,
axisLabel: { axisLabel: {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论