// 风速-功率曲线图 // 用途:展示风速与风机输出功率之间的关系。 // 适用场景:风机性能评估、功率曲线优化。 // 实现建议: // 使用 ECharts 的折线图。 // xAxis 为风速,yAxis 为功率。 export const option = { title: { text: "风速-功率曲线图", }, tooltip: { trigger: "axis", }, legend: { top: "bottom", // data: ["Email", "Union Ads", "Video Ads", "Direct", "Search Engine"], }, toolbox: { feature: { dataView: { show: true, readOnly: false }, magicType: { show: true, type: ["line", "bar"] }, restore: { show: true }, saveAsImage: { show: true }, }, }, xAxis: { type: "category", name: "风速 (m/s)", // boundaryGap: false, data: [5, 20, 35, 25, 10, 5], }, yAxis: { name: "功率 (kW)", type: "value", nameLocation: "middle", // 设置名称位置,可以是 'start', 'middle' 或 'end' nameTextStyle: { fontSize: 14, // 文字大小 color: "#333", // 文字颜色 padding: [0, 0, 30, 0], // 文字与轴线的距离 }, }, grid: { top: "20%", right: "20%", bottom: "10%", containLabel: true, // 包含标签在内 }, series: [ { name: "功率曲线", type: "line", data: [300, 22, 249, 345, 234, 56, 73], // 风速与功率对应数据 }, ], };