Skip to content

Commit

Permalink
Enable negativeData prop in declarative charts (#33414)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anush2303 authored Dec 6, 2024
1 parent a045df8 commit e186b82
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "enable negativeData prop in declarative charts",
"packageName": "@fluentui/react-charting",
"email": "74965306+Anush2303@users.noreply.github.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ export const transformPlotlyJsonToVBCProps = (
// height: layout?.height,
hideLegend: true,
barWidth: 24,
supportNegativeData: true,
};
};

Expand Down Expand Up @@ -290,10 +291,12 @@ export const transformPlotlyJsonToScatterChartProps = (
if (isAreaChart) {
return {
data: chartProps,
supportNegativeData: true,
} as IAreaChartProps;
} else {
return {
data: chartProps,
supportNegativeData: true,
} as ILineChartProps;
}
};
Expand Down

0 comments on commit e186b82

Please sign in to comment.