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
饼图手机端选中样式不切换 #3512
Comments
你使用的地址可以发一下吗?感觉不是官方网站啊~ |
参考:antvis/G2Plot#2904 chart.interaction('element-active', {
start: [{ trigger: 'element:click', action: 'element-active:active' },],
end: [{
trigger: 'element:click', isEnable: (context) => {
const activeElement = context.event?.gEvent?.target?.get('element');
const elements = context.view.geometries[0].elements;
console.info('elements', elements.map(e => e.getStates()))
elements.forEach(element => {
if (element !== activeElement) {
element.setState('active', false);
}
});
}, action: 'element-active:reset'
}],
}); |
@visiky 来 PR 吧~ |
PR demo? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
如图官网demo,先点击事例1,再点击事例2 , 选中的样式还在事例1上
The text was updated successfully, but these errors were encountered: