You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
finalpoint=coord.invert(points.single);
if (dim==null) {
updateNearest= (attributes) {
finaloffset=attributes.representPoint-point;
// The neighborhood is an approximate square.finaldistance= (offset.dx.abs() +offset.dy.abs()) / 2;
if (distance<nearestDistance) {
nearestIndex=attributes.index;
nearestDistance=distance;
}
};
} else {
finalgetProjection=dim==Dim.x
? (Offsetoffset) =>offset.dx
: (Offsetoffset) =>offset.dy;
updateNearest= (attributes) {
finalp=attributes.representPoint;
finaldistance= (getProjection(point) -getProjection(p)).abs();
if (distance<nearestDistance) {
nearestIndex=attributes.index;
nearestDistance=distance;
}
};
}
The text was updated successfully, but these errors were encountered:
XiFengLang
changed the title
内置的PointSelector不适合用于计算饼图/日出图等带角度的图表的选中域,能否将Selector开放到Selection中做参数,以方便定制化
内置的PointSelector不适合用于计算饼图/日出图等带角度的图表的选中域,能否将Selector开放到Selection中做参数,以方便定制化?
Nov 24, 2023
XiFengLang
changed the title
内置的PointSelector不适合用于计算饼图/日出图等带角度的图表的选中域,能否将Selector开放到Selection中做参数,以方便定制化?
内置的PointSelector不适合用于计算饼图/日出图等带角度的图表的选中域,能否将Selector开放到Selection中做参数以方便定制化?
Nov 24, 2023
PointSelector
用2点之间的距离筛选出nearestDistance
(代码如下),这套算法在饼图和日出图中会算出错误的nearestIndex
,导致tooltip
展示异常。我还没来得及学习Graphic
专业知识,不清楚作者后续是否会增加一个判断角度的AngleSelector
,如果Graphic
专业领域中不需要AngleSelector
,那希望作者开放更多的定制接口,以方便其他开发者定制图表功能。The text was updated successfully, but these errors were encountered: