diff --git a/packages/mermaid/src/config.type.ts b/packages/mermaid/src/config.type.ts index 638847547..b5d1f03d4 100644 --- a/packages/mermaid/src/config.type.ts +++ b/packages/mermaid/src/config.type.ts @@ -935,6 +935,10 @@ export interface XYChartConfig extends BaseDiagramConfig { * Top and bottom space from the chart title */ titlePadding?: number; + /** + * Should show the data label on the chart + */ + showDataLabel?: boolean; /** * Should show the chart title */ diff --git a/packages/mermaid/src/schemas/config.schema.yaml b/packages/mermaid/src/schemas/config.schema.yaml index e36b00bf9..9c7ffeb5a 100644 --- a/packages/mermaid/src/schemas/config.schema.yaml +++ b/packages/mermaid/src/schemas/config.schema.yaml @@ -1228,6 +1228,10 @@ $defs: # JSON Schema definition (maybe we should move these to a separate file) type: number default: 10 minimum: 0 + showDataLabel: + description: Should show the data label on the chart + type: boolean + default: true showTitle: description: Should show the chart title type: boolean