Skip to content

Commit

Permalink
Adding change file
Browse files Browse the repository at this point in the history
  • Loading branch information
srmukher committed Jan 8, 2025
1 parent 92ae5c1 commit 43263f2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Support tozeroy mode for Area Charts",
"packageName": "@fluentui/react-charting",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -531,9 +531,9 @@ export class AreaChartBase extends React.Component<IAreaChartProps, IAreaChartSt

// Stacked Info used to draw graph
const stackedInfo =
this.props.mode === AreaChartModes.toNextY
? this._getStackedData(keys, dataSet)
: this._getStackedDataZeroToY(keys, dataSet);
this.props.mode === AreaChartModes.toZeroY
? this._getStackedDataZeroToY(keys, dataSet)
: this._getStackedData(keys, dataSet);

return {
colors,
Expand Down Expand Up @@ -587,9 +587,9 @@ export class AreaChartBase extends React.Component<IAreaChartProps, IAreaChartSt

// Stacked Info used to draw graph
const stackedInfo =
this.props.mode === AreaChartModes.toNextY
? this._getStackedData(keys, dataSet)
: this._getStackedDataZeroToY(keys, dataSet);
this.props.mode === AreaChartModes.toZeroY
? this._getStackedDataZeroToY(keys, dataSet)
: this._getStackedData(keys, dataSet);

return {
colors,
Expand Down

0 comments on commit 43263f2

Please sign in to comment.