<!--
为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。
-->


### One-line summary [问题简述]
用dataset提供渲染数据,开启toolbox中的数据视图,无法正常显示dataView,如果用非dataset提供则能正常显示




### Version & Environment [版本及环境]
+ ECharts version [ECharts 版本]:v4.1.0
+ Browser version [浏览器类型和版本]:chrome 69
+ OS Version [操作系统类型和版本]:macOS





### Expected behaviour [期望结果]

<img width="764" alt="2018-09-08 22 49 29" 
src="https://user-images.githubusercontent.com/26006959/45255500-ec533d80-b3b9-11e8-9797-78f019186e25.png";>



<img width="714" alt="2018-09-08 22 32 34" 
src="https://user-images.githubusercontent.com/26006959/45255321-59b19f00-b3b7-11e8-8cf0-a5d95a401e8a.png";>






### ECharts option [ECharts配置项]
<!-- Copy and paste your 'echarts option' here. -->
<!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 
option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->
```javascript
option = { 
         title: {
                text: '多折线图'
            },
            tooltip: {
                trigger: 'axis'
            },
            legend: {
                bottom: '3%',
                data:[
                    {name:'邮件营销',icon:'circle'},
                    {name:'联盟广告',icon:'circle'},
                    {name:'视频广告',icon:'circle'},
                    {name:'直接访问',icon:'circle'},
                    {name:'搜索引擎',icon:'circle'},
                ]
            },
            dataset:{
                source:{
                    week:['周一','周二','周三','周四','周五','周六','周日'],
                    '邮件营销':[120, 132, 101, 134, 90, 230, 210],
                    '联盟广告':[220, 182, 191, 234, 290, 330, 310],
                    '视频广告':[150, 232, 201, 154, 190, 330, 410],
                    '直接访问':[320, 332, 301, 334, 390, 330, 320],
                    '搜索引擎':[820, 932, 901, 934, 1290, 1330, 1320],

                }

            },
            grid: {
                left: '3%',
                right: '4%',
                bottom: '10%',
                containLabel: true
            },
            toolbox: {
                show: true,
                feature: {
                    dataZoom: {
                        yAxisIndex: 'none'
                    },
                    dataView: {readOnly: false},
                    magicType: {type: ['line', 'bar']},
                    restore: {},
                    saveAsImage: {}
                }
            },
            xAxis: {
                type: 'category',
                boundaryGap: false,
               
            },
            yAxis: {
                type: 'value'
            },
            series: [
                {
                   type:'line'
                },
                {
                   type:'line'
                },
                {
                   type:'line'
                },
                {
                   type:'line'
                },
                {
                   type:'line'
                },
                
            ],
            color: [
                '#FF9C6E', '#FFC069', '#95DE64', '#5CDBD3', '#69C0FF', 
'#85A5FF', '#B37FEB', '#FF85C0'
            ]


}

```




### Other comments [其他信息]
<!-- For example: Screenshot or Online demo -->
<!-- [例如,截图或线上实例 (JSFiddle/JSBin/Codepen)] -->
异常的显示dataView
<img width="715" alt="2018-09-08 22 43 16" 
src="https://user-images.githubusercontent.com/26006959/45255411-b6fa2000-b3b8-11e8-9e14-214175e307c3.png";>





[ Full content available at: 
https://github.com/apache/incubator-echarts/issues/9035 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to