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
【svg模式-bug】使用svg渲染模式绘制饼图时,label设置hide-overlap无效, label标签的效果还是重叠在一起了 #4200
Comments
直接复制了官网的案例改也是会重叠 import { Chart, Util } from '@antv/g2'; const data = [ chart.coordinate('theta', { const interval = chart chart.interaction('element-single-selected'); chart.render(); |
svg 下的碰撞目前有一些问题,想了解下你们是什么场景必须用 svg 吗? |
主要是其他的画图我们都用了svg自己来画,不用canvas,饼图是借住了这个框架,所以也想统一弄成svg模式,canvas在ios系统测试中表现不是很稳定
在 2022-10-26 09:26:51,"hustcc" ***@***.***> 写道:
svg 下的碰撞目前有一些问题,想了解下你们是什么场景必须用 svg 吗?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
是绘图产品中,需要加一些图表吗?如果少量简单图表,可以尝试使用 d3~ |
// 初始化
...
this.chart = new Chart({
container: config.id,
width: config.width,
height: config.height - 1,
padding: 20,
renderer: 'svg'
});
...
// 配置label
this.geometry
.label(
labelFeature,
{
offset: 8,
labelHeight: 38,
lineHeight: 24,
layout: [{ type: 'pie-spider' }, { type: 'hide-overlap' }],
....
})
The text was updated successfully, but these errors were encountered: