<div id="main5" style="height: 330px; width: 100%"></div>
import * as echarts from "echarts";
option5: {
tooltip: {
trigger: "axis",
},
xAxis: {
type: "category",
data: [
"1月",
"2月",
"3月",
"4月",
"5月",
"6月",
"7月",
"8月",
"9月",
"10月",
"11月",
"12月",
],
},
yAxis: {
type: "value",
},
legend: {
icon: "circle",
top: 5,
right: 30,
orient: "vertical", //图例列表的布局朝向horizontal水平vertical垂直
},
series: [
{
name: "报修历史记录数量",
type: "line",
smooth: true,
echarts折线图
![](https://img-home.csdnimg.cn/images/20240711042549.png)