Conversation
Summary of ChangesHello @taoeer, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! 此拉取请求旨在解决漏斗图在用户进行图例操作后出现的显示错误。核心改动在于优化了数据转换逻辑,通过采用不可变数据操作的方式,确保每次数据处理都生成新的数据副本,从而避免了因数据意外修改而导致的渲染问题,提升了图表的稳定性和交互体验。 Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
| formatData = map(data, (row, index) => { | ||
| const percent = (row[yField] || 0) / maxYFieldValue; | ||
| row[FUNNEL_PERCENT] = percent; | ||
| row[FUNNEL_MAPPING_VALUE] = (max - min) * percent + min; | ||
| // 转化率数据存储前后数据 | ||
| row[FUNNEL_CONVERSATION] = [get(data, [index - 1, yField]), row[yField]]; | ||
| return row; | ||
| return { | ||
| ...row, | ||
| [FUNNEL_PERCENT]: percent, | ||
| [FUNNEL_MAPPING_VALUE]: (max - min) * percent + min, | ||
| [FUNNEL_CONVERSATION]: [get(data, [index - 1, yField]), row[yField]], | ||
| }; | ||
| }); |
PR includes
Screenshot