Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

用dataset提供渲染数据并开启默认数据视图toolbox.feature.dataView,dataView显示异常 #9035

Closed
wlc534 opened this issue Sep 8, 2018 · 1 comment
Labels

Comments

@wlc534
Copy link

wlc534 commented Sep 8, 2018

One-line summary [问题简述]

用dataset提供渲染数据,开启toolbox中的数据视图,无法正常显示dataView,如果用非dataset提供则能正常显示

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]:v4.1.0
  • Browser version [浏览器类型和版本]:chrome 69
  • OS Version [操作系统类型和版本]:macOS

Expected behaviour [期望结果]

2018-09-08 22 49 29

2018-09-08 22 32 34

ECharts option [ECharts配置项]

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 [其他信息]

异常的显示dataView
2018-09-08 22 43 16

@100pah 100pah added the bug label Sep 9, 2018
@100pah 100pah self-assigned this Sep 9, 2018
@susiwen8
Copy link
Contributor

Duplicate with #7533

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants