{"action":"created","issue":{"url":"https://api.github.com/repos/ecomfe/echarts/issues/4792","repository_url":"https://api.github.com/repos/ecomfe/echarts","labels_url":"https://api.github.com/repos/ecomfe/echarts/issues/4792/labels{/name}","comments_url":"https://api.github.com/repos/ecomfe/echarts/issues/4792/comments","events_url":"https://api.github.com/repos/ecomfe/echarts/issues/4792/events","html_url":"https://github.com/ecomfe/echarts/issues/4792","id":197578608,"number":4792,"title":"面积堆积图在数据缺失即“-”情况下，无法正确绘制图形","user":{"login":"Nick-Xu","id":8415190,"avatar_url":"https://avatars.githubusercontent.com/u/8415190?v=3","gravatar_id":"","url":"https://api.github.com/users/Nick-Xu","html_url":"https://github.com/Nick-Xu","followers_url":"https://api.github.com/users/Nick-Xu/followers","following_url":"https://api.github.com/users/Nick-Xu/following{/other_user}","gists_url":"https://api.github.com/users/Nick-Xu/gists{/gist_id}","starred_url":"https://api.github.com/users/Nick-Xu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nick-Xu/subscriptions","organizations_url":"https://api.github.com/users/Nick-Xu/orgs","repos_url":"https://api.github.com/users/Nick-Xu/repos","events_url":"https://api.github.com/users/Nick-Xu/events{/privacy}","received_events_url":"https://api.github.com/users/Nick-Xu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-26T11:35:51Z","updated_at":"2016-12-29T17:07:59Z","closed_at":null,"body":"<!--\r\n为了方便我们能够复现和修复 bug，请遵从下面的规范描述您的问题。\r\n-->\r\n\r\n\r\n### One-line summary [问题简述]\r\n面积堆积图在数据缺失即“-”情况下，无法正确绘制图形\r\n\r\n\r\n\r\n\r\n### Version & Environment [版本及环境]\r\n+ ECharts version [ECharts 版本]:3.3.1\r\n+ Browser version [浏览器类型和版本]:Chrome\r\n+ OS Version [操作系统类型和版本]:Win 7\r\n\r\n\r\n\r\n\r\n\r\n### Expected behaviour [期望结果]\r\n能够按照规则正确显示图形\r\n\r\n\r\n\r\n\r\n### ECharts option [ECharts配置项]\r\n<!-- Copy and paste your 'echarts option' here. -->\r\n<!-- [下方贴你的option，注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->\r\n```javascript\r\noption = {\r\n    \"color\":[\r\n        \"#48bd9b\",\r\n        \"#f6c143\",\r\n        \"#dd5f6c\",\r\n        \"#6694e7\",\r\n        \"#89c652\",\r\n        \"#f39652\",\r\n        \"#69b9c1\",\r\n        \"#7151ba\",\r\n        \"#e16a55\",\r\n        \"#d3a063\",\r\n        \"#378083\",\r\n        \"#a960e8\",\r\n        \"#3ab2bc\",\r\n        \"#b18250\",\r\n        \"#ed9974\",\r\n        \"#71a443\",\r\n        \"#e3d051\",\r\n        \"#d75fe5\",\r\n        \"#5367b4\",\r\n        \"#377368\"\r\n    ],\r\n    \"title\":{\r\n        \"show\":false,\r\n        \"text\":\"吸金趋势监控\"\r\n    },\r\n    \"legend\":{\r\n        \"show\":false,\r\n        \"data\":[\r\n            \"直播视频\",\r\n            \"电影\",\r\n            \"电视剧\",\r\n            \"纪录片\",\r\n            \"动漫\",\r\n            \"音乐\",\r\n            \"综艺\",\r\n            \"娱乐\",\r\n            \"教育\",\r\n            \"少儿\",\r\n            \"微电影\"\r\n        ]\r\n    },\r\n    \"grid\":{\r\n        \"show\":false,\r\n        \"top\":35,\r\n        \"left\":60,\r\n        \"right\":60,\r\n        \"bottom\":75\r\n    },\r\n    \"xAxis\":[\r\n        {\r\n            \"type\":\"category\",\r\n            \"data\":[\r\n                \"2016-12-15\",\r\n                \"2016-12-16\",\r\n                \"2016-12-17\",\r\n                \"2016-12-18\",\r\n                \"2016-12-19\",\r\n                \"2016-12-20\",\r\n                \"2016-12-21\",\r\n                \"2016-12-22\",\r\n                \"2016-12-23\",\r\n                \"2016-12-24\",\r\n                \"2016-12-25\"\r\n            ],\r\n            \"boundaryGap\":false,\r\n            \"axisLine\":{\r\n                \"show\":true\r\n            },\r\n            \"axisTick\":{\r\n                \"show\":false\r\n            },\r\n            \"splitLine\":{\r\n                \"show\":false\r\n            }\r\n        }\r\n    ],\r\n    \"yAxis\":[\r\n        {\r\n            \"type\":\"value\",\r\n            \"axisLine\":{\r\n                \"show\":true\r\n            },\r\n            \"axisTick\":{\r\n                \"show\":false\r\n            },\r\n            \"splitLine\":{\r\n                \"show\":false\r\n            },\r\n            \"splitArea\":{\r\n                \"show\":false\r\n            },\r\n            \"axisLabel\":{\r\n                \"formatter\":\"{value} %\"\r\n            },\r\n            \"max\":100\r\n        }\r\n    ],\r\n    \"tooltip\":{\r\n        \"show\":true,\r\n        \"trigger\":\"axis\"\r\n    },\r\n    \"series\":[\r\n        {\r\n            \"name\":\"直播视频\",\r\n            \"type\":\"line\",\r\n            \"stack\":\"trendData\",\r\n            \"data\":[\r\n                \"-\",\r\n                \"-\",\r\n                \"0.0\",\r\n                \"-\",\r\n                \"0.0\",\r\n                \"-\",\r\n                \"0.05\",\r\n                \"0.0\",\r\n                \"0.0\",\r\n                \"0.49\",\r\n                \"0.08\"\r\n            ],\r\n            \"areaStyle\":{\r\n                \"normal\":{\r\n                    \"opacity\":1\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"name\":\"电影\",\r\n            \"type\":\"line\",\r\n            \"stack\":\"trendData\",\r\n            \"data\":[\r\n                \"-\",\r\n                \"-\",\r\n                \"79.03\",\r\n                \"80.69\",\r\n                \"82.45\",\r\n                \"82.15\",\r\n                \"82.63\",\r\n                \"79.07\",\r\n                \"79.91\",\r\n                \"81.92\",\r\n                \"81.54\"\r\n            ],\r\n            \"areaStyle\":{\r\n                \"normal\":{\r\n                    \"opacity\":1\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"name\":\"电视剧\",\r\n            \"type\":\"line\",\r\n            \"stack\":\"trendData\",\r\n            \"data\":[\r\n                \"-\",\r\n                \"-\",\r\n                \"19.61\",\r\n                \"17.53\",\r\n                \"15.84\",\r\n                \"15.14\",\r\n                \"14.9\",\r\n                \"18.18\",\r\n                \"18.1\",\r\n                \"15.88\",\r\n                \"15.63\"\r\n            ],\r\n            \"areaStyle\":{\r\n                \"normal\":{\r\n                    \"opacity\":1\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"name\":\"纪录片\",\r\n            \"type\":\"line\",\r\n            \"stack\":\"trendData\",\r\n            \"data\":[\r\n                \"-\",\r\n                \"-\",\r\n                \"0.26\",\r\n                \"0.3\",\r\n                \"0.26\",\r\n                \"0.27\",\r\n                \"0.29\",\r\n                \"0.22\",\r\n                \"0.23\",\r\n                \"0.29\",\r\n                \"0.33\"\r\n            ],\r\n            \"areaStyle\":{\r\n                \"normal\":{\r\n                    \"opacity\":1\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"name\":\"动漫\",\r\n            \"type\":\"line\",\r\n            \"stack\":\"trendData\",\r\n            \"data\":[\r\n                \"-\",\r\n                \"-\",\r\n                \"0.59\",\r\n                \"0.49\",\r\n                \"0.46\",\r\n                \"0.47\",\r\n                \"0.51\",\r\n                \"1.42\",\r\n                \"0.95\",\r\n                \"0.69\",\r\n                \"0.52\"\r\n            ],\r\n            \"areaStyle\":{\r\n                \"normal\":{\r\n                    \"opacity\":1\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"name\":\"音乐\",\r\n            \"type\":\"line\",\r\n            \"stack\":\"trendData\",\r\n            \"data\":[\r\n                \"-\",\r\n                \"-\",\r\n                \"0.12\",\r\n                \"0.12\",\r\n                \"0.12\",\r\n                \"0.15\",\r\n                \"0.21\",\r\n                \"0.28\",\r\n                \"0.15\",\r\n                \"0.22\",\r\n                \"0.73\"\r\n            ],\r\n            \"areaStyle\":{\r\n                \"normal\":{\r\n                    \"opacity\":1\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"name\":\"综艺\",\r\n            \"type\":\"line\",\r\n            \"stack\":\"trendData\",\r\n            \"data\":[\r\n                \"-\",\r\n                \"-\",\r\n                \"0.38\",\r\n                \"0.87\",\r\n                \"0.86\",\r\n                \"0.73\",\r\n                \"0.6\",\r\n                \"0.57\",\r\n                \"0.48\",\r\n                \"0.42\",\r\n                \"1.09\"\r\n            ],\r\n            \"areaStyle\":{\r\n                \"normal\":{\r\n                    \"opacity\":1\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"name\":\"娱乐\",\r\n            \"type\":\"line\",\r\n            \"stack\":\"trendData\",\r\n            \"data\":[\r\n                \"-\",\r\n                \"-\",\r\n                \"0.0\",\r\n                \"0.0\",\r\n                \"0.0\",\r\n                \"0.0\",\r\n                \"0.01\",\r\n                \"0.0\",\r\n                \"0.0\",\r\n                \"0.0\",\r\n                \"0.0\"\r\n            ],\r\n            \"areaStyle\":{\r\n                \"normal\":{\r\n                    \"opacity\":1\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"name\":\"教育\",\r\n            \"type\":\"line\",\r\n            \"stack\":\"trendData\",\r\n            \"data\":[\r\n                \"-\",\r\n                \"-\",\r\n                \"0.0\",\r\n                \"0.0\",\r\n                \"-\",\r\n                \"0.0\",\r\n                \"0.0\",\r\n                \"0.0\",\r\n                \"0.0\",\r\n                \"0.0\",\r\n                \"0.0\"\r\n            ],\r\n            \"areaStyle\":{\r\n                \"normal\":{\r\n                    \"opacity\":1\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"name\":\"少儿\",\r\n            \"type\":\"line\",\r\n            \"stack\":\"trendData\",\r\n            \"data\":[\r\n                \"-\",\r\n                \"-\",\r\n                \"0.0\",\r\n                \"0.0\",\r\n                \"0.0\",\r\n                \"0.0\",\r\n                \"0.02\",\r\n                \"0.02\",\r\n                \"0.02\",\r\n                \"0.02\",\r\n                \"0.02\"\r\n            ],\r\n            \"areaStyle\":{\r\n                \"normal\":{\r\n                    \"opacity\":1\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"name\":\"微电影\",\r\n            \"type\":\"line\",\r\n            \"stack\":\"trendData\",\r\n            \"data\":[\r\n                \"-\",\r\n                \"-\",\r\n                \"-\",\r\n                \"-\",\r\n                \"-\",\r\n                \"1.08\",\r\n                \"0.79\",\r\n                \"0.24\",\r\n                \"0.17\",\r\n                \"0.07\",\r\n                \"0.05\"\r\n            ],\r\n            \"areaStyle\":{\r\n                \"normal\":{\r\n                    \"opacity\":1\r\n                }\r\n            }\r\n        }\r\n    ]\r\n};\r\n```\r\n\r\n\r\n\r\n\r\n### Other comments [其他信息]\r\n<!-- For example: Screenshot or Online demo -->\r\n<!-- [例如，截图或线上实例 (JSFiddle/JSBin/Codepen)] -->\r\n\r\n![Uploading image.png…]()\r\n@pissang @kener @100pah "},"comment":{"url":"https://api.github.com/repos/ecomfe/echarts/issues/comments/269660727","html_url":"https://github.com/ecomfe/echarts/issues/4792#issuecomment-269660727","issue_url":"https://api.github.com/repos/ecomfe/echarts/issues/4792","id":269660727,"user":{"login":"Nick-Xu","id":8415190,"avatar_url":"https://avatars.githubusercontent.com/u/8415190?v=3","gravatar_id":"","url":"https://api.github.com/users/Nick-Xu","html_url":"https://github.com/Nick-Xu","followers_url":"https://api.github.com/users/Nick-Xu/followers","following_url":"https://api.github.com/users/Nick-Xu/following{/other_user}","gists_url":"https://api.github.com/users/Nick-Xu/gists{/gist_id}","starred_url":"https://api.github.com/users/Nick-Xu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nick-Xu/subscriptions","organizations_url":"https://api.github.com/users/Nick-Xu/orgs","repos_url":"https://api.github.com/users/Nick-Xu/repos","events_url":"https://api.github.com/users/Nick-Xu/events{/privacy}","received_events_url":"https://api.github.com/users/Nick-Xu/received_events","type":"User","site_admin":false},"created_at":"2016-12-29T17:07:59Z","updated_at":"2016-12-29T17:07:59Z","body":"将选项option修改为ECharts 2版本后，展示的是正确的图形，因此怀疑是EChart3引入的缺陷。\r\noption = {\r\n    \"color\":[\r\n        \"#48bd9b\",\r\n        \"#f6c143\",\r\n        \"#dd5f6c\",\r\n        \"#6694e7\",\r\n        \"#89c652\",\r\n        \"#f39652\",\r\n        \"#69b9c1\",\r\n        \"#7151ba\",\r\n        \"#e16a55\",\r\n        \"#d3a063\",\r\n        \"#378083\",\r\n        \"#a960e8\",\r\n        \"#3ab2bc\",\r\n        \"#b18250\",\r\n        \"#ed9974\",\r\n        \"#71a443\",\r\n        \"#e3d051\",\r\n        \"#d75fe5\",\r\n        \"#5367b4\",\r\n        \"#377368\"\r\n    ],\r\n    \"title\":{\r\n        \"show\":false,\r\n        \"text\":\"吸金趋势监控\"\r\n    },\r\n    \"legend\":{\r\n        \"show\":false,\r\n        \"data\":[\r\n            \"直播视频\",\r\n            \"电影\",\r\n            \"电视剧\",\r\n            \"纪录片\",\r\n            \"动漫\",\r\n            \"音乐\",\r\n            \"综艺\",\r\n            \"娱乐\",\r\n            \"教育\",\r\n            \"少儿\",\r\n            \"微电影\"\r\n        ]\r\n    },\r\n    \"grid\":{\r\n        \"show\":false,\r\n        \"top\":35,\r\n        \"left\":60,\r\n        \"right\":60,\r\n        \"bottom\":75\r\n    },\r\n    \"xAxis\":[\r\n        {\r\n            \"type\":\"category\",\r\n            \"data\":[\r\n                \"2016-12-15\",\r\n                \"2016-12-16\",\r\n                \"2016-12-17\",\r\n                \"2016-12-18\",\r\n                \"2016-12-19\",\r\n                \"2016-12-20\",\r\n                \"2016-12-21\",\r\n                \"2016-12-22\",\r\n                \"2016-12-23\",\r\n                \"2016-12-24\",\r\n                \"2016-12-25\"\r\n            ],\r\n            \"boundaryGap\":false,\r\n            \"axisLine\":{\r\n                \"show\":true\r\n            },\r\n            \"axisTick\":{\r\n                \"show\":false\r\n            },\r\n            \"splitLine\":{\r\n                \"show\":false\r\n            }\r\n        }\r\n    ],\r\n    \"yAxis\":[\r\n        {\r\n            \"type\":\"value\",\r\n            \"axisLine\":{\r\n                \"show\":true\r\n            },\r\n            \"axisTick\":{\r\n                \"show\":false\r\n            },\r\n            \"splitLine\":{\r\n                \"show\":false\r\n            },\r\n            \"splitArea\":{\r\n                \"show\":false\r\n            },\r\n            \"axisLabel\":{\r\n                \"formatter\":\"{value} %\"\r\n            },\r\n            \"max\":100\r\n        }\r\n    ],\r\n    \"tooltip\":{\r\n        \"show\":true,\r\n        \"trigger\":\"axis\"\r\n    },\r\n    \"series\":[\r\n        {\r\n            \"name\":\"直播视频\",\r\n            \"type\":\"line\",\r\n            \"stack\":\"trendData\",\r\n          \t\"itemStyle\": {\"normal\": {\"areaStyle\": {\"type\": \"default\"}}},\r\n            \"data\":[\r\n                \"-\",\r\n                \"-\",\r\n                \"0.0\",\r\n                \"-\",\r\n                \"0.0\",\r\n                \"-\",\r\n                \"0.05\",\r\n                \"0.0\",\r\n                \"0.0\",\r\n                \"0.49\",\r\n                \"0.08\"\r\n            ]\r\n        },\r\n        {\r\n            \"name\":\"电影\",\r\n            \"type\":\"line\",\r\n            \"stack\":\"trendData\",\r\n          \t\"itemStyle\": {\"normal\": {\"areaStyle\": {\"type\": \"default\"}}},\r\n            \"data\":[\r\n                \"-\",\r\n                \"-\",\r\n                \"79.03\",\r\n                \"80.69\",\r\n                \"82.45\",\r\n                \"82.15\",\r\n                \"82.63\",\r\n                \"79.07\",\r\n                \"79.91\",\r\n                \"81.92\",\r\n                \"81.54\"\r\n            ]\r\n        },\r\n        {\r\n            \"name\":\"电视剧\",\r\n            \"type\":\"line\",\r\n            \"stack\":\"trendData\",\r\n          \t\"itemStyle\": {\"normal\": {\"areaStyle\": {\"type\": \"default\"}}},\r\n            \"data\":[\r\n                \"-\",\r\n                \"-\",\r\n                \"19.61\",\r\n                \"17.53\",\r\n                \"15.84\",\r\n                \"15.14\",\r\n                \"14.9\",\r\n                \"18.18\",\r\n                \"18.1\",\r\n                \"15.88\",\r\n                \"15.63\"\r\n            ]\r\n        },\r\n        {\r\n            \"name\":\"纪录片\",\r\n            \"type\":\"line\",\r\n            \"stack\":\"trendData\",\r\n          \t\"itemStyle\": {\"normal\": {\"areaStyle\": {\"type\": \"default\"}}},\r\n            \"data\":[\r\n                \"-\",\r\n                \"-\",\r\n                \"0.26\",\r\n                \"0.3\",\r\n                \"0.26\",\r\n                \"0.27\",\r\n                \"0.29\",\r\n                \"0.22\",\r\n                \"0.23\",\r\n                \"0.29\",\r\n                \"0.33\"\r\n            ]\r\n        },\r\n        {\r\n            \"name\":\"动漫\",\r\n            \"type\":\"line\",\r\n            \"stack\":\"trendData\",\r\n          \t\"itemStyle\": {\"normal\": {\"areaStyle\": {\"type\": \"default\"}}},\r\n            \"data\":[\r\n                \"-\",\r\n                \"-\",\r\n                \"0.59\",\r\n                \"0.49\",\r\n                \"0.46\",\r\n                \"0.47\",\r\n                \"0.51\",\r\n                \"1.42\",\r\n                \"0.95\",\r\n                \"0.69\",\r\n                \"0.52\"\r\n            ]\r\n        },\r\n        {\r\n            \"name\":\"音乐\",\r\n            \"type\":\"line\",\r\n            \"stack\":\"trendData\",\r\n          \t\"itemStyle\": {\"normal\": {\"areaStyle\": {\"type\": \"default\"}}},\r\n            \"data\":[\r\n                \"-\",\r\n                \"-\",\r\n                \"0.12\",\r\n                \"0.12\",\r\n                \"0.12\",\r\n                \"0.15\",\r\n                \"0.21\",\r\n                \"0.28\",\r\n                \"0.15\",\r\n                \"0.22\",\r\n                \"0.73\"\r\n            ]\r\n        },\r\n        {\r\n            \"name\":\"综艺\",\r\n            \"type\":\"line\",\r\n            \"stack\":\"trendData\",\r\n          \t\"itemStyle\": {\"normal\": {\"areaStyle\": {\"type\": \"default\"}}},\r\n            \"data\":[\r\n                \"-\",\r\n                \"-\",\r\n                \"0.38\",\r\n                \"0.87\",\r\n                \"0.86\",\r\n                \"0.73\",\r\n                \"0.6\",\r\n                \"0.57\",\r\n                \"0.48\",\r\n                \"0.42\",\r\n                \"1.09\"\r\n            ]\r\n        },\r\n        {\r\n            \"name\":\"娱乐\",\r\n            \"type\":\"line\",\r\n            \"stack\":\"trendData\",\r\n          \t\"itemStyle\": {\"normal\": {\"areaStyle\": {\"type\": \"default\"}}},\r\n            \"data\":[\r\n                \"-\",\r\n                \"-\",\r\n                \"0.0\",\r\n                \"0.0\",\r\n                \"0.0\",\r\n                \"0.0\",\r\n                \"0.01\",\r\n                \"0.0\",\r\n                \"0.0\",\r\n                \"0.0\",\r\n                \"0.0\"\r\n            ]\r\n        },\r\n        {\r\n            \"name\":\"教育\",\r\n            \"type\":\"line\",\r\n            \"stack\":\"trendData\",\r\n          \t\"itemStyle\": {\"normal\": {\"areaStyle\": {\"type\": \"default\"}}},\r\n            \"data\":[\r\n                \"-\",\r\n                \"-\",\r\n                \"0.0\",\r\n                \"0.0\",\r\n                \"-\",\r\n                \"0.0\",\r\n                \"0.0\",\r\n                \"0.0\",\r\n                \"0.0\",\r\n                \"0.0\",\r\n                \"0.0\"\r\n            ]\r\n        },\r\n        {\r\n            \"name\":\"少儿\",\r\n            \"type\":\"line\",\r\n            \"stack\":\"trendData\",\r\n          \t\"itemStyle\": {\"normal\": {\"areaStyle\": {\"type\": \"default\"}}},\r\n            \"data\":[\r\n                \"-\",\r\n                \"-\",\r\n                \"0.0\",\r\n                \"0.0\",\r\n                \"0.0\",\r\n                \"0.0\",\r\n                \"0.02\",\r\n                \"0.02\",\r\n                \"0.02\",\r\n                \"0.02\",\r\n                \"0.02\"\r\n            ]\r\n        },\r\n        {\r\n            \"name\":\"微电影\",\r\n            \"type\":\"line\",\r\n            \"stack\":\"trendData\",\r\n          \t\"itemStyle\": {\"normal\": {\"areaStyle\": {\"type\": \"default\"}}},\r\n            \"data\":[\r\n                \"-\",\r\n                \"-\",\r\n                \"-\",\r\n                \"-\",\r\n                \"-\",\r\n                \"1.08\",\r\n                \"0.79\",\r\n                \"0.24\",\r\n                \"0.17\",\r\n                \"0.07\",\r\n                \"0.05\"\r\n            ]\r\n        }\r\n    ]\r\n};\r\n\r\n![image](https://cloud.githubusercontent.com/assets/8415190/21549315/63bf3b1e-ce2c-11e6-96d2-26c9cb45d681.png)\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"Nick-Xu"}}