export default function options(data = {}) { return { tooltip: { trigger: "axis", }, grid: { top: 10, bottom:135, right:30 }, xAxis: { type: "category", data: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul"], boundaryGap: false, axisLine: { lineStyle: { color: "#d9d9d9", }, }, axisLabel: { color: "#7a869a", }, }, yAxis: { type: "value", splitLine: { lineStyle: { color: "#d9d9d9", }, }, axisLine: { show: false, }, axisLabel: { color: "#7a869a", formatter: '{value} m³/s' }, axisTick: { show: false } }, series: [ { data: [150, 230, 224, 218, 135, 147, 260], type: "line", name: '闸前水位', lineStyle: { color: '#5b8ff9' }, itemStyle: { color: '#5b8ff9', }, }, ], } }