提交 6587e329 编写于 作者: D deqingli

update legend selector default option

上级 ec06d050
...@@ -27,7 +27,7 @@ import '../helper/focusNodeAdjacencyAction'; ...@@ -27,7 +27,7 @@ import '../helper/focusNodeAdjacencyAction';
echarts.registerAction({ echarts.registerAction({
type: 'dragNode', type: 'dragNode',
event: 'dragNode', event: 'dragnode',
// here can only use 'update' now, other value is not support in echarts. // here can only use 'update' now, other value is not support in echarts.
update: 'update' update: 'update'
}, function (payload, ecModel) { }, function (payload, ecModel) {
......
...@@ -35,7 +35,6 @@ echarts.registerAction({ ...@@ -35,7 +35,6 @@ echarts.registerAction({
var tree = seriesModel.getData().tree; var tree = seriesModel.getData().tree;
var node = tree.getNodeByDataIndex(dataIndex); var node = tree.getNodeByDataIndex(dataIndex);
node.isExpand = !node.isExpand; node.isExpand = !node.isExpand;
}); });
}); });
......
...@@ -296,15 +296,13 @@ var LegendModel = echarts.extendComponentModel({ ...@@ -296,15 +296,13 @@ var LegendModel = echarts.extendComponentModel({
// data: [], // data: [],
// Usage: // Usage:
// selector: [{type: 'all or inverse', icon: 'xxx', title: xxx}] // selector: [{type: 'all or inverse', title: xxx}]
// or // or
// selector: true // selector: true
// or // or
// selector: ['all', 'inverse'] // selector: ['all', 'inverse']
selector: false, selector: false,
selectorIconSize: 14,
selectorLabel: { selectorLabel: {
show: true, show: true,
borderRadius: 10, borderRadius: 10,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册