option = {
title: {
text: “一天分布”,
subtext: “纯属虚构”,
},
tooltip: {
trigger: “axis”,
},
toolbox: {
show: true,
feature: {
saveAsImage: {},
},
},
xAxis: {
type: “category”,
boundaryGap: true,
splitLine: {
show: true,
},
data: [
“00:00”,
“01:15”,
“02:30”,
“03:45”,
“05:00”,
“06:15”,
“07:30”,
],
},
yAxis: {
type: “value”,
splitLine: {
show: false,
},
axisLabel: {
formatter: “{value} W”,
},
},
series: [
{
name: “计划”,
type: “line”,
smooth: true,
showSymbol: false,
symbol: false,
lineStyle: {
normal: {
color: new echarts.graphic.LinearGradient(
0,
0,
1,
0,
[
{
<
echarts 柱状图 甘特图
于 2022-10-21 14:57:42 首次发布