Skip to content

Commit

Permalink
Mode check for declarative area chart (#33467)
Browse files Browse the repository at this point in the history
  • Loading branch information
srmukher authored Dec 17, 2024
1 parent ce5e90c commit 835c01b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Mode check for declarative area chart ",
"packageName": "@fluentui/react-charting",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export const DeclarativeChart: React.FunctionComponent<DeclarativeChartProps> =
);
}
case 'scatter':
const isAreaChart = data.some((series: any) => series.fill === 'tonexty');
const isAreaChart = data.some((series: any) => series.fill === 'tonexty' || series.fill === 'tozeroy');
if (isXDate || isXNumber) {
if (isAreaChart) {
return (
Expand Down

0 comments on commit 835c01b

Please sign in to comment.