Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
新属性
channel的命名可以更具描述性。根据 PR 的描述,这个属性旨在保留 y 轴编码中的原始字段名,当使用 series 时,该字段名会丢失。在 G2 中,
channel一词通常指代像x、y或color这样的视觉通道。这里存储的值是映射到某个通道的数据集中的字段(field)。因此,将此属性命名为field会更准确,对于自定义 tooltip 的用户来说也不会那么模棱两可。我建议将
channel重命名为field。这将使该属性在 tooltip item 数据结构中的用途更加清晰。Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
感觉可以参考 code assist ,field 挺好的。