Skip to content

Commit

Permalink
docs(ava-react/ntv): refine ntv palette props code and site docs
Browse files Browse the repository at this point in the history
  • Loading branch information
BBSQQ authored and LAI-X committed Mar 12, 2024
1 parent 2d6fa41 commit 7e38109
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions packages/ava-react/src/NarrativeTextVis/types/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,15 @@ export type ThemeType = 'light' | 'dark';
export type SizeType = 'normal' | 'small';
export type PaletteType = Partial<{
color: string;
/**
* @description Compare the indicator with the assessment attribute value of 'positive'. The color Settings are displayed
* @description.zh-CN 对比类指标,对应 assessment 属性值 'positive' 显示颜色设置
*/
positiveColor: string;
/**
* @description Compare the indicator with the assessment attribute value of 'negative'. The color Settings are displayed
* @description.zh-CN 对比类指标,对应 assessment 属性值为 'negative' 显示颜色设置
*/
negativeColor: string;
}>;

Expand Down
4 changes: 2 additions & 2 deletions site/docs/api/ntv/intro.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ type PaletteConfig = Partial<
EntityType | 'text', {
/** color */
color: string,
/** color when metadata.assessment equal 'positive' */
/** Compare the indicator with the assessment attribute value of 'positive'. The color Settings are displayed */
positiveColor: string;
/** color when metadata.assessment equal 'negative' */
/** Compare the indicator with the assessment attribute value of 'negative'. The color Settings are displayed */
negativeColor: string;
}
>
Expand Down
4 changes: 2 additions & 2 deletions site/docs/api/ntv/intro.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ type PaletteConfig = Partial<
EntityType | 'text', {
/** 颜色 */
color: string,
/** 当 metadata.assessment 'positive' 时的颜色 */
/** 对比类指标,对应 assessment 属性值 'positive' 显示颜色设置 */
positiveColor: string;
/** 当 metadata.assessment 'negative' 时的颜色 */
/** 对比类指标,对应 assessment 属性值为 'negative' 显示颜色设置 */
negativeColor: string;
}
>
Expand Down

0 comments on commit 7e38109

Please sign in to comment.