Skip to content

Commit

Permalink
fix(react-charting): [BUG 12178] Add background to the SVGTooltipText (
Browse files Browse the repository at this point in the history
  • Loading branch information
srmukher authored Jan 30, 2025
1 parent 669de2d commit fa5549e
Show file tree
Hide file tree
Showing 8 changed files with 462 additions and 221 deletions.
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

0 comments on commit fa5549e

Please sign in to comment.