Files
Yi.Admin/Yi.Bbs.Vue3/src/views/home/hooks/echartsConfig.js
2023-12-16 17:47:44 +08:00

82 lines
1.4 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
export const statisticsEcharts = {
grid: {
top: "10%",
left: "4%",
right: "4%",
bottom: "5%",
containLabel: true,
},
tooltip: {
trigger: "axis",
},
xAxis: {
show: true,
type: "category",
data: [],
axisLine: {
lineStyle: {
color: "#999",
},
},
},
yAxis: [
{
type: "value",
splitNumber: 4,
splitLine: {
lineStyle: {
type: "dashed",
color: "#DDD",
},
},
axisLine: {
show: false,
lineStyle: {
color: "#333",
},
},
nameTextStyle: {
color: "#999",
},
splitArea: {
show: false,
},
},
],
series: {
name: "访问量",
type: "line",
data: [],
lineStyle: {
normal: {
width: 5,
color: {
type: "linear",
colorStops: [
{
offset: 0,
color: "#a0cfff", // 浅蓝色0% 处的颜色
},
{
offset: 1,
color: "#0047AB", // 深蓝色100% 处的颜色
},
],
globalCoord: false, // 缺省为 false
},
shadowColor: "rgba(72,216,191, 0.3)",
shadowBlur: 10,
shadowOffsetY: 20,
},
},
itemStyle: {
normal: {
color: "#fff",
borderWidth: 10,
borderColor: "#A9F387",
},
},
smooth: true,
},
};