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

3.0 toolbox 切换图形类型时发现问题 #2522

Closed
autyan opened this issue Jan 27, 2016 · 1 comment
Closed

3.0 toolbox 切换图形类型时发现问题 #2522

autyan opened this issue Jan 27, 2016 · 1 comment

Comments

@autyan
Copy link

autyan commented Jan 27, 2016

切换图形类型后,markPoint无法显示,并且重复刷新Option也不行。只有刷新页面后才能重新显示。

option = {
            title: {
                text: ''
            },
            tooltip: {},
            legend: {
                data: ['']
            },
            xAxis: {
                data: []
            },
            yAxis: {},
            toolbox: {
                show: true,
                feature: {
                    saveAsImage: {
                        type: 'png',
                        backgroundColor: 'auto',
                        excludeComponents: ['toolbox'],
                        show: true,
                        title: '保存为图片'
                    },
                    magicType: {
                        show: true,
                        type: ['line', 'bar'],
                        title: {
                            line: '切换为折线图',
                            bar: '切换为柱状图'
                        }
                    }
                }
            },
            series: [{
                itemStyle: {
                    normal: {
                        color: '#1abc9c'
                    }
                },
                name: '',
                type: 'bar',
                data: [],
                markPoint: {
                    data: [
                        { type: 'max', name: '最大值' },
                        { type: 'min', name: '最小值' }
                    ]
                },
                markLine: {
                    data: []
                }
            }]
        };
@SuperZDev
Copy link
Contributor

SuperZDev commented Jan 30, 2016

#2470

@pissang pissang closed this as completed in 8ec968b Feb 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants