Skip to content

Commit 7fbe2c1

Browse files
committed
Fixing build error
1 parent 199f867 commit 7fbe2c1

File tree

6 files changed

+17
-15
lines changed

6 files changed

+17
-15
lines changed

packages/charts/react-charting/src/components/AreaChart/AreaChart.base.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ import {
4242
formatDate,
4343
getSecureProps,
4444
areArraysEqual,
45+
AreaChartModes,
4546
} from '../../utilities/index';
4647
import { ILegend, Legends } from '../Legends/index';
4748
import { DirectionalHint } from '@fluentui/react/lib/Callout';
4849
import { IChart } from '../../types/index';
49-
import { AreaChartModes } from './AreaChart.types';
5050

5151
const getClassNames = classNamesFunction<IAreaChartStyleProps, IAreaChartStyles>();
5252

packages/charts/react-charting/src/components/AreaChart/AreaChart.types.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,10 @@ import {
1414
ICartesianChartProps,
1515
IChildProps,
1616
} from '../CommonComponents/CartesianChart.types';
17+
import { AreaChartModes } from '../../utilities/area-utils';
1718

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

20-
export enum AreaChartModes {
21-
/**
22-
* This mode will fill the area from the line to the x-axis.
23-
*/
24-
toZeroY = 'tozeroy',
25-
26-
/**
27-
* This mode will fill the area from the line to the next line.
28-
*/
29-
toNextY = 'tonexty',
30-
}
31-
3221
/**
3322
* Area Chart properties.
3423
* {@docCategory AreaChart}

packages/charts/react-charting/src/components/DeclarativeChart/PlotlySchemaAdapter.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ import { ISankeyChartProps } from '../SankeyChart/index';
2222
import { IVerticalStackedBarChartProps } from '../VerticalStackedBarChart/index';
2323
import { IHorizontalBarChartWithAxisProps } from '../HorizontalBarChartWithAxis/index';
2424
import { ILineChartProps } from '../LineChart/index';
25-
import { AreaChartModes, IAreaChartProps } from '../AreaChart/index';
25+
import { IAreaChartProps } from '../AreaChart/index';
2626
import { IHeatMapChartProps } from '../HeatMapChart/index';
2727
import { DataVizPalette, getNextColor } from '../../utilities/colors';
2828
import { GaugeChartVariant, IGaugeChartProps, IGaugeChartSegment } from '../GaugeChart/index';
2929
import { IGroupedVerticalBarChartProps } from '../GroupedVerticalBarChart/index';
3030
import { IVerticalBarChartProps } from '../VerticalBarChart/index';
31+
import { AreaChartModes } from '../../utilities/area-utils';
3132

3233
const isDate = (value: any): boolean => !isNaN(Date.parse(value));
3334
const isNumber = (value: any): boolean => !isNaN(parseFloat(value)) && isFinite(value);
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export enum AreaChartModes {
2+
/**
3+
* This mode will fill the area from the line to the x-axis.
4+
*/
5+
toZeroY = 'tozeroy',
6+
7+
/**
8+
* This mode will fill the area from the line to the next line.
9+
*/
10+
toNextY = 'tonexty',
11+
}

packages/charts/react-charting/src/utilities/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ export * from './utilities';
33
export * from './colors';
44
export * from './gradients';
55
export * from './vbc-utils';
6+
export * from './area-utils';

packages/react-examples/src/react-charting/AreaChart/AreaChart.Basic.Example.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { AreaChart, ICustomizedCalloutData } from '@fluentui/react-charting';
33
import { IAreaChartProps, ChartHoverCard, DataVizPalette, getColorFromToken } from '@fluentui/react-charting';
44
import { ChoiceGroup, IChoiceGroupOption } from '@fluentui/react/lib/ChoiceGroup';
55
import { Toggle } from '@fluentui/react/lib/Toggle';
6-
import { AreaChartModes } from '@fluentui/react-charting/lib/AreaChart';
6+
import { AreaChartModes } from '@fluentui/react-charting/lib/utilities/index';
77

88
interface IAreaChartBasicState {
99
width: number;

0 commit comments

Comments
 (0)