hustcc

Results 457 comments of hustcc

需要修改官网 demo 案例代码。

```ts /** * A recreation of this demo: https://observablehq.com/@d3/donut-chart */ import { Chart } from '@antv/g2'; const chart = new Chart({ container: 'container', height: 640, }); chart.coordinate({ type: 'theta', innerRadius:...

@pearmini 这个问题之前封装 web component 的时候也遇到的。

应该是相同问题:https://github.com/antvis/G2/issues/6213 已修复。

![image](https://github.com/antvis/G2/assets/7856674/635e5e6d-9682-42a3-946b-a596a54be4b7) 如上图,标记区域的 label 应该自动向左移动,防止超出画布被剪裁。

> 大佬想问下这个label自动调整需求是设置成默认生效吗? 不是,是类似于 overflowHide 一样,组成一个配置,大部分代码都是可以参考的。

https://github.com/antvis/G2/issues/6199 这个问题是同类问题,可以熟悉之后,一起看看~

@Runtus 使用这个地址:https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*B2GwQbqkH_kAAAAAAAAAAAAADmJ7AQ/original

因为还没有看到 pr 的代码,所以在这里提前提醒一下,exceed 之后 Adjust 的策略: > adjust 的方向是 exceed 方向的反方向。 举个栗子: - 如果是右侧超出,那么就像左边调整位置 - 如果是右下超出,那就向左上调整位置 注意处理整个画布都小于 label 大小的时候,不要出现代码的死循环。