Skip to content

Commit

Permalink
Fixing build error
Browse files Browse the repository at this point in the history
  • Loading branch information
srmukher committed Jan 9, 2025
1 parent 199f867 commit 561c69e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 1 addition & 2 deletions packages/charts/react-charting/etc/react-charting.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,7 @@ export interface IAreaChartProps extends ICartesianChartProps {
data: IChartProps;
enableGradient?: boolean;
enablePerfOptimization?: boolean;
// Warning: (ae-forgotten-export) The symbol "AreaChartModes" needs to be exported by the entry point index.d.ts
mode?: AreaChartModes;
mode?: string;
onRenderCalloutPerDataPoint?: IRenderFunction<ICustomizedCalloutData>;
onRenderCalloutPerStack?: IRenderFunction<ICustomizedCalloutData>;
// (undocumented)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ import {

export type { IChildProps, IRefArrayData, IBasestate, ILineChartDataPoint, ILineChartPoints, IMargins };

/**
* Area Chart modes
* {@docCategory AreaChart}
*/
export enum AreaChartModes {
/**
* This mode will fill the area from the line to the x-axis.
Expand Down Expand Up @@ -86,7 +90,7 @@ export interface IAreaChartProps extends ICartesianChartProps {
/**
* The prop used to define the Y axis mode (tonexty or tozeroy)
*/
mode?: AreaChartModes;
mode?: string;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { AreaChart, ICustomizedCalloutData } from '@fluentui/react-charting';
import { IAreaChartProps, ChartHoverCard, DataVizPalette, getColorFromToken } from '@fluentui/react-charting';
import { ChoiceGroup, IChoiceGroupOption } from '@fluentui/react/lib/ChoiceGroup';
import { Toggle } from '@fluentui/react/lib/Toggle';
import { AreaChartModes } from '@fluentui/react-charting/lib/AreaChart';

interface IAreaChartBasicState {
width: number;
Expand Down Expand Up @@ -290,7 +289,7 @@ export class AreaChartBasicExample extends React.Component<{}, IAreaChartBasicSt
legendProps={{
canSelectMultipleLegends: this.state.legendMultiSelect,
}}
mode={this.state.changeChartMode ? AreaChartModes.toZeroY : AreaChartModes.toNextY}
mode={this.state.changeChartMode ? 'tozeroy' : 'tonexty'}
/>
</div>
)}
Expand All @@ -317,7 +316,7 @@ export class AreaChartBasicExample extends React.Component<{}, IAreaChartBasicSt
legendProps={{
canSelectMultipleLegends: this.state.legendMultiSelect,
}}
mode={this.state.changeChartMode ? AreaChartModes.toZeroY : AreaChartModes.toNextY}
mode={this.state.changeChartMode ? 'tozeroy' : 'tonexty'}
/>
</div>
)}
Expand Down

0 comments on commit 561c69e

Please sign in to comment.