Incubator-echarts: 饼图的pieSelect选中样式

Created on 6 Sep 2017  ·  2Comments  ·  Source: apache/incubator-echarts

One-line summary [问题简述]

如题:饼图的pieSelect选中样式,能否不是位移,而是类似鼠标hover的放大效果

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]:3.7.1
  • Browser version [浏览器类型和版本]:chrome
  • OS Version [操作系统类型和版本]:Windows

Expected behaviour [期望结果]

pieSelect 可以选择位移或放大的样式

ECharts option [ECharts配置项]



```javascript
//总持仓数据
var dataAll = [
{value:335, name:'定期'},
{value:310, name:'小金库'},
{value:234, name:'基金'}
];

option = {
color:['#6E57FB','#ECBA69', '#508CEE'],
//silent:false,
series: [
{
selectedOffset:0,
//animationType:'scale',
//animationEasing:'elasticOut',
type:'pie',
radius: ['62%', '70%'],
avoidLabelOverlap: false,
label: {
normal: {
show: false,
position: 'center'
},
emphasis: {
show: false
}
},
center: ['50%', '50%'],
labelLine: {
normal: {
show: false
}
},
data:dataAll
}
]
};

Other comments [其他信息]


qq 20170906224214

Most helpful comment

我也想实现你说的效果,直接通过select实现不了,发现了另外一个实现这种效果的方式。myChart.dispatchAction({ type: 'highlight', seriesIndex: 0, dataIndex: 你要高亮的数据的index });

All 2 comments

我也想实现你说的效果,直接通过select实现不了,发现了另外一个实现这种效果的方式。myChart.dispatchAction({ type: 'highlight', seriesIndex: 0, dataIndex: 你要高亮的数据的index });

@junnuobaby 这种方式如果点击页面其它地方,highlight 状态就会被取消掉,可以selected状态不会,有什么办法去解决吗

Was this page helpful?
0 / 5 - 0 ratings