hustcc

Results 453 comments of hustcc

> 目前在使用sider上遇到了问题。不 组件部分,我们会出一个详细的配置手册和使用方式。你自己关系 slider 的使用问题,也可以单独一个 issue 提出,我们看看是 bug 还是优化,看看怎么解决。

> 有没有对折线图上的折线命名的方法呢 ? 给折线命名是什么意思?

> 自定义热力图背景 this.chart.annotation().image({src: '本地图片'}) 为什么图片显示不出来 如果不是文档问题,可以新开 issue。这个问题应该就是不能使用本地图片,存在跨域问题。使用 url 的方式。

主题自定义文档,不够清晰。

什么问题?@visiky

目前不行。应该是 target 返回的是一条折线对应的 Path shape,然后 shape 中包含的是全部的数据,而不是一个点的数据。 提供一个办法: - 拿到点击的 x y 坐标 - 根据 x y 用 coordinate 转成 0 ~ 1 的数据 - 然后获取到离这个点击点最近的一个数据点

![image](https://user-images.githubusercontent.com/7856674/169194487-03c4b46c-a35a-43e0-8ba3-11c4903eb53e.png) 是指这个吗? @meyergin

@zhoustudent 感谢反馈,已经收到多个这类两次事件触发的 issue,我会全部一次处理掉。 目前先暂时添加一个 debounce 来避免多次执行吧。

there are 2 way: 1. set the label style ```ts chart.line() .label({ /* **/ }) ``` 2. draw [annotation](https://g2.antv.vision/zh/docs/manual/concepts/component/annotation#%E5%9B%BE%E8%A1%A8%E6%A0%87%E6%B3%A8%E7%B1%BB%E5%9E%8B) in the canvas by yourself

其实很难解决,因为 js 的浮点数精度无可避免,只能内置默认的 formatter。