Skip to content

Commit

Permalink
Merge pull request #753 from teambition/feature/analytics-sunburst
Browse files Browse the repository at this point in the history
feat: 统计图表新增 sunburst 类型
  • Loading branch information
2eha0 committed Oct 9, 2021
2 parents bd70fb8 + 035fb9b commit 3c25062
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 @@ -494,7 +494,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 @@ -594,6 +594,7 @@ declare module 'teambition-types' {
isDuedateExist?: boolean
weekSeries?: TapSupportedWeekSeries[]
date?: string
commongroup?: string
}

export type TapFilterItem =
Expand Down Expand Up @@ -647,6 +648,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 3c25062

Please sign in to comment.