-
Notifications
You must be signed in to change notification settings - Fork 605
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
feat: violin #2593
feat: violin #2593
Conversation
🎊 PR Preview b5560fb has been successfully built and deployed to https://antvis-G2Plot-preview-pr-2593.surge.sh?type=diff&date=2021-06-04 🕐 Build time: 103.169s 🤖 By surge-preview |
Pull Request Test Coverage Report for Build 905583120
💛 - Coveralls |
e78c800
to
abde4da
Compare
surge-preview@v2 改用 surge-preview@v2.0.1 , 其它分支已经提 PR 了。 |
it('tooltip: customContent', () => { | ||
violin.update({ | ||
tooltip: { | ||
customContent: () => '<div class="custom-tooltip">xxx</div>', |
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.
customContent 怎么使用值呢
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.
customContent(title, items) => <div class="custom-tooltip">{title}{items.map(item => item.data.y)}</div>
{ | ||
type: 'text', | ||
position: ['median', 'median'], | ||
content: '辅助文本', |
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.
这个 annotation 是什么效果?
是不是应该加个 example
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.
图形标注(我不知道有什么应用场景)
* feat(violin): 添加小提琴图 * fix(violin): demo 的数据放到 CDN * doc(violin): 更新截图 * fix(violin): x 轴字段用常量定义 * refactor(violin): 去除 simple-statistics 包依赖,减小体积 * fix(violin): 修复不响应用户 tooltip 选项的问题 * fix(violin): 修复小提琴图中箱线图四分位的计算问题 * fix(violin): smooth 和 hollow API 改为 shape, 重命名字段常量 * docs(violin): 优化 box.textMap 的文档和 Demo * feat(violin): 使用 geometry 通用 adaptor, 添加格式化支持 * fix(violin): 修复 shape 通道未映射的问题 Co-authored-by: 14 <yisi.wys@antfin.com>
PR includes
Screenshot