-
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: 旭日图类型定义和实现 #1630
feat: 旭日图类型定义和实现 #1630
Conversation
lxfu1
commented
Sep 24, 2020
这个旭日图看起来挺好看的~ |
@@ -0,0 +1,31 @@ | |||
import { deepMix } from '@antv/util'; |
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.
这个文件也要加单层,底层代码100覆盖,可以下一个分支处理。
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.
+1
* sunburst 处理数据 | ||
* @param options | ||
*/ | ||
export function transformData(options: SunburstOptions) { |
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.
Util方法 100% 覆盖,可下个分支处理
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.
+1
@@ -0,0 +1,20 @@ | |||
import { Options, StyleAttr } from '../../types'; | |||
|
|||
export interface SunburstOptions extends Omit<Options, 'data' | 'legend' | 'slider' | 'scrollbar' | 'xAxis' | 'yAxis'> { |
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.
xField yField 也去掉,不然会提示,下个分支改。
const coord = chart.coordinate({ | ||
type: 'polar', | ||
cfg: { | ||
innerRadius, |
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.
Radius没用上。