ECharts 折线图折点上方数值不显示的问题

时间:2025-03-12 08:55:09
var option = { "title": { "text": "折线图" }, "tooltip": { "trigger": "axis" }, "legend": { "data": [ "日产量" ] }, "grid": { "left": "3%", "right": "4%", "bottom": "3%", "containLabel": true }, "toolbox": { "feature": { "saveAsImage": {} } }, "xAxis": { "axisLabel": { "show": true, "textStyle": { "color": "#c3dbff",//X轴字体颜色 "fontSize": 25 //X轴字体大小 }, // "interval": 0, //"rotate": -60 //X轴倾斜度 }, "axisLine": { "lineStyle": { "color": "#315070" } }, "type": "category", "boundaryGap": false, "data": [ "挺胸左放胯", "挺胸右放胯", "再来,挺胸左放胯", "挺胸右放胯", "加快!胸胯,胸胯,胸胯" ] }, "yAxis": { "type": "value" }, "series": [ { "name": "邮件营销", "type": "line", "stack": "总量", "label": { "normal": { "fontSize": 25, "show": true, //折点显示数值, "position": "top" } }, "itemStyle": { "normal": { "color": "#00FF00",//折线区域的颜色 "lineStyle": { "color": "#0d427e" //折线的颜色 } } }, "areaStyle": {}, "symbolSize": 10,//折线点的大小,必须加这个,折点上方的数值才会显示 "data": [ 300, 100, 500, 400, 600 ] } ] }