mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-25 10:20:06 +02:00
@@ -93,7 +93,7 @@ export interface XYChartConfig {
|
|||||||
titleFontSize: number;
|
titleFontSize: number;
|
||||||
titlePadding: number;
|
titlePadding: number;
|
||||||
showTitle: boolean;
|
showTitle: boolean;
|
||||||
showLabelData?: boolean;
|
showDataLabel: boolean;
|
||||||
xAxis: XYChartAxisConfig;
|
xAxis: XYChartAxisConfig;
|
||||||
yAxis: XYChartAxisConfig;
|
yAxis: XYChartAxisConfig;
|
||||||
chartOrientation: 'vertical' | 'horizontal';
|
chartOrientation: 'vertical' | 'horizontal';
|
||||||
|
@@ -89,7 +89,7 @@ export const draw = (txt: string, id: string, _version: string, diagObj: Diagram
|
|||||||
.attr('stroke', (data) => data.strokeFill)
|
.attr('stroke', (data) => data.strokeFill)
|
||||||
.attr('stroke-width', (data) => data.strokeWidth);
|
.attr('stroke-width', (data) => data.strokeWidth);
|
||||||
|
|
||||||
if (chartConfig.showLabelData) {
|
if (chartConfig.showDataLabel) {
|
||||||
shapeGroup
|
shapeGroup
|
||||||
.selectAll('text')
|
.selectAll('text')
|
||||||
.data(shape.data)
|
.data(shape.data)
|
||||||
|
Reference in New Issue
Block a user