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

toolbox中feature,featureTitle,featureIcon设计冗余不规范 #252

Closed
kener opened this issue Mar 18, 2014 · 0 comments
Closed

toolbox中feature,featureTitle,featureIcon设计冗余不规范 #252

kener opened this issue Mar 18, 2014 · 0 comments

Comments

@kener
Copy link
Contributor

kener commented Mar 18, 2014

【重要】艰难的决定,option.toolbox.feature重新设计如下,echarts 1.4.0 toolbox部分无法向下兼容,更新到1.4.0后请修改使用代码中的toolbox部分,大部分简单的说把true改为 {show:true} 即可,动态类型切换等详见更新文档。

{
            mark : {
                show : false,
                title : {
                    mark : '辅助线开关',
                    markUndo : '删除辅助线',
                    markClear : '清空辅助线'
                },
                lineStyle : {
                    width : 1,
                    color : '#1e90ff',
                    type : 'dashed'
                }
            },
            dataZoom : {
                show : false,
                title : {
                    dataZoom : '区域缩放',
                    dataZoomReset : '区域缩放后退'
                }
            },
            dataView : {
                show : false,
                title : '数据视图',
                readOnly: false,
                lang : ['Data View', 'close', 'refresh']
            },
            magicType: {
                show : false,
                title : {
                    line : '折线图切换',
                    bar : '柱形图切换',
                    stack : '堆叠',
                    tiled : '平铺'
                },
                type : [], // 'line', 'bar', 'stack', 'tiled'
            },
            restore : {
                show : false,
                title : '还原'
            },
            saveAsImage : {
                show : false,
                title : '保存为图片',
                type : 'png',
                lang : ['点击保存'] 
            }
}
@kener kener closed this as completed in 7fcfa3d Mar 18, 2014
@kener kener added the toolbox label Mar 20, 2014
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

1 participant