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

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

Comments

Projects
None yet
2 participants
@autyan

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

This comment has been minimized.

Show comment
Hide comment
Contributor

SuperZDev commented Jan 30, 2016

@pissang pissang closed this in 8ec968b Feb 1, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment