Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(react-charting): [BUG 12178] Add background to the SVGTooltipText #33696

Merged
merged 11 commits into from
Jan 30, 2025
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Add background to the SVGTooltipText",
"packageName": "@fluentui/react-charting",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,7 @@ export class CartesianChartBase
}}
maxWidth={xAxisTitleMaximumAllowedWidth}
wrapContent={wrapContent}
theme={this.props.theme}
/>
)}
<g
Expand Down Expand Up @@ -602,6 +603,7 @@ export class CartesianChartBase
}}
maxWidth={yAxisTitleMaximumAllowedHeight}
wrapContent={wrapContent}
theme={this.props.theme}
/>
)}
</g>
Expand All @@ -625,6 +627,7 @@ export class CartesianChartBase
}}
maxWidth={yAxisTitleMaximumAllowedHeight}
wrapContent={wrapContent}
theme={this.props.theme}
/>
)}
</svg>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ export const transformPlotlyJsonToGaugeProps = (
};
};

const MAX_DEPTH = 8;
const MAX_DEPTH = 15;
export const sanitizeJson = (jsonObject: any, depth: number = 0): any => {
if (depth > MAX_DEPTH) {
throw new Error('Maximum json depth exceeded');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4167,6 +4167,12 @@ exports[`DeclarativeChart Should render gaugechart in DeclarativeChart 1`] = `
/>
</g>
<g>
<rect
height="8"
width="8"
x="-4"
y="-4"
/>
<text
aria-hidden="true"
class=
Expand All @@ -4186,6 +4192,12 @@ exports[`DeclarativeChart Should render gaugechart in DeclarativeChart 1`] = `
420
</text>
</g>
<rect
height="8"
width="8"
x="-4"
y="-4"
/>
<text
class=

Expand Down
Loading