echarts中设置markPoint

 markPoint: {
                            data: [
                                {
                                    type: "max",
                                    name: "最大值",
                                    color: "pink",
                                    itemStyle: {
                                        color: "rgba(115, 159, 250, .5)",
                                    },
                                    symbol: "rect",
                                    symbolSize: [25, 25], // 容器大小
                                    symbolOffset: [0, -15], //位置偏移
                                },
                                {
                                    type: "min",
                                    name: "最小值",
                                    color: "rgba(255, 148, 77, 1)",
                                    itemStyle: {
                                        color: "rgba(255, 148, 77, .5)",
                                    },
                                    symbol: "rect",
                                    symbolSize: [25, 25], // 容器大小
                                    symbolOffset: [0, -15], //位置偏移
                                },
                            ],
                        },
posted @ 2020-08-28 09:33  Grg93  阅读(12755)  评论(0编辑  收藏  举报