echarts 2 折线数据都为0时,图标显示异常-灰色点

不中彩票不舒服斯基 发布于 2016/09/25 11:27
阅读 495
收藏 0

如同所示:产出累计 每天数据都为0,但图标上方出现一行小圆圈 ,请问这是什么原因造成,代码如下:

        initPanelReportOption: function (legendData, xAxisData, seriesData, stype, stackText) {
            return {
                "tooltip": {
                    "trigger": "axis",
                    "axisPointer": {
                        "type": "shadow"
                    }
                },
                "legend": {
                    "data": legendData
                },
                "toolbox": {
                    "show": false
                },
                "calculable": true,
                "grid" : {'y':40,'y2':75},
                "xAxis": [
                    {
                        "type": "category",
                        "axisLabel":{
                            interval:0,
                            rotate:60,
                            margin:5
                        },
                        "data": xAxisData
                    }
                ],
                "yAxis": [
                    {
                        "type": "value"
                    },
                    {
                        "type": "value"
                    }
                ],
                "series": function () {
                    var serie = [];
                    for (var i = 0; i < legendData.length; i++) {
                        var item = {
                            name: legendData[i],
                            "type": stype[i],
                            "stack": stackText,
                            "data": seriesData[i],
                            "markPoint": markPoint,
                            "markLine": markLine
                        }

                        if(legendData[i]=="投入累计" || legendData[i] == "产出累计"){
                            item['yAxisIndex'] = 1;
                        }

                        serie.push(item);
                    }
                    return serie;
                }()
            }
        }



加载中
返回顶部
顶部