Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
366 views
in Technique[技术] by (71.8m points)

echarts 图标始终无法打点

目的:实现图标上的打点标注
image.png

核心语句 markPoint.data

coord: ["2020-8-20", "1.7688"],
    var option = {
                    grid: {
                        top: '10%',
                        bottom: '10%',
                        left: '10%'

                    },
                    xAxis: {
                        type: 'category',
                        data: this.fenshitu_data.date,

                    },
                    yAxis: {
                        type: 'value',
                        min: 'dataMin'
                    },
                    tooltip: {
                        trigger: 'axis',
                        formatter: '{b} : {c}' + this.fenshitu_unit
                    },
                    series: [{
                        data: this.fenshitu_data.networth,
                        type: 'line',
                        smooth: true,
                        symbol: 'none',
                        markLine: {
                            data: [{
                                type: 'average',
                                name: '平均值'
                            }]
                        },
                        markPoint: {
                            symbol: 'circle',
                            symbolSize: 10,
                            data: [
                                {
                                coord: ['2020-8-20', '1.7688'],
                                    name: '1111111',
                                    color: "pink",
                                    itemStyle: {
                                        color: "rgba(115, 159, 250, .5)",
                                    },
                                    symbolSize: [25, 25], // 容器大小
                                    symbolOffset: [0, -15], //位置偏移
                                }


                            ]
                        },
                    }]
                };

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...