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
组件存在的问题 #4603
Labels
Milestone
Comments
function render(container, ...) {}
function Shape() {
return {
shape() {},
marker() {},
}
} |
const aixsOptions = {
style: {
layout: {},
animate: {},
data: {},
style: {
labelFilter: '', // 滤镜
}
labelFilter: ()=>boolean, // 过滤器
},
};
|
This was referenced Feb 18, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
现有问题
color
通道scale
创建的组件没有颜色信息(填充颜色、透明度等)例如 moviesPointBin、housePricePointShapes 中通过
size
通道的比例尺创建的图例没有颜色,期望图例颜色和节点颜色保持一致对于这类情况,应当是需要创建一个常数比例尺 (Constant) 来映射到
color
通道,并结合size
通道的比例尺合并为单一连续图例组件进行展示。同理的还有:
opacity
通道的比例尺。shape
通道scale
创建的组件没有形状信息,例如 athletesRectBin 中节点上矩形的,但图例并不能获取到相关信息。 同样是期望有一个常数比例尺来映射到shape
通道。scale
需要合并为一个组件表达例如 irisPointShapes,其
category
同时映射到了shape
和color
通道,在当前逻辑下,分别生成了两个图例,而实际期望是将这两个通道合并为一个图例进行表达。思考
但做多通道
scale
合并之前,需要思考清楚,组件推断需要从过去scales
、coordinates
到 多个组件类型
的多对多映射转变为多对一的映射关系。至于更具体的细节,例如同一编码字段的哪些可视化通道可以合并,是否支持不同编码字段进行合并等问题,主要取决于组件本身的表达能力,在当前的组件组织结构中,其实是很难表达和维护的。
The text was updated successfully, but these errors were encountered: