Skip to content

Commit

Permalink
feat: 统计图表新增 sunburst 类型
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanzhi.jyz committed Apr 28, 2021
1 parent a1ca777 commit 035fb9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/schemas/TapChart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export type TapChartType =
| 'bubble'
| 'multiDetails'
| 'polar'
| 'sunburst'

// tapGraph definition
export type TapGraphColType = 'type/Date' | 'type/DateTime' | 'type/Integer' | 'type/String' | 'type/Task'
Expand Down Expand Up @@ -200,7 +201,8 @@ export type TapGraphVisualizationSettingsSet =
TapGraphVisualizationSettings<'area', TapGraphAreaDisplay> |
TapGraphVisualizationSettings<'bubble', TapGraphBubbleDisplay> |
TapGraphVisualizationSettings<'multiDetails', TapGraphOverviewDisplay> |
TapGraphVisualizationSettings<'polar', TapGraphPolarDisplay>
TapGraphVisualizationSettings<'polar', TapGraphPolarDisplay> |
TapGraphVisualizationSettings<'sunburst', TapGraphPieDisplay>

export interface TapBaseChart <T extends FilterRequest | FilterResponse> {
_id: TapChartId
Expand Down
4 changes: 3 additions & 1 deletion src/teambition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ declare module 'teambition-types' {

export type TapChartType = 'pie' | 'bar' | 'line' | 'area' | 'scatter'

export type TapDimensionBaseDataType = 'string' | 'datetime' | 'dropDown' | 'text' | 'boolean' | 'int'
export type TapDimensionBaseDataType = 'string' | 'datetime' | 'dropDown' | 'text' | 'boolean' | 'int' | 'commongroup'

export type TapChartOperator = '~' | '=' | '<' | '>=' | 'in'

Expand Down Expand Up @@ -590,6 +590,7 @@ declare module 'teambition-types' {
isDuedateExist?: boolean
weekSeries?: TapSupportedWeekSeries[]
date?: string
commongroup?: string
}

export type TapFilterItem =
Expand Down Expand Up @@ -643,6 +644,7 @@ declare module 'teambition-types' {
| TapFilterTarget<'isDuedateExist', 'boolean', boolean>
| TapFilterTarget<'weekSeries', 'type/String', TapSupportedWeekSeries[]>
| TapFilterTarget<'date', 'type/Date', string>
| TapFilterTarget<'commongroup', 'commongroup', CommonGroupId>

export type TapGenericFilterResponse = TapFilterItem[]

Expand Down

0 comments on commit 035fb9b

Please sign in to comment.