/* * @Author: your name * @Date: 2024-11-19 16:18:07 * @LastEditTime: 2024-11-19 16:58:24 * @LastEditors: bogon * @Description: In User Settings Edit * @FilePath: /performance-test/src/assets/js/constants/echarts-config/roseChart.js */ // 风玫瑰图(Wind Rose Chart) // 用途:显示不同方向的风速或风力分布。 // 适用场景:风场选址、风资源评估。 // 实现建议: // ECharts 的极坐标 + 柱状图。 // 使用 polar 和 radiusAxis 配置。 export const option = { angleAxis: { type: "category", data: ["N", "NE", "E", "SE", "S", "SW", "W", "NW"], // 风向 boundaryGap: false, }, legend: { top: "bottom", }, radiusAxis: {}, polar: {}, toolbox: { feature: { dataView: { show: true, readOnly: false }, magicType: { show: true, type: ["line", "bar"] }, restore: { show: true }, saveAsImage: { show: true }, }, }, series: [ { type: "bar", data: [15, 25, 30, 20, 10, 5, 8, 12], // 风速数据 coordinateSystem: "polar", name: "风速", }, ], tooltip: { trigger: "item", }, };