@fluentui/react-charting 5.23.40 → 5.23.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +57 -1
- package/CHANGELOG.md +23 -2
- package/dist/react-charting.d.ts +5 -0
- package/dist/react-charting.js +1 -1
- package/dist/react-charting.min.js +1 -1
- package/etc/react-charting.api.md +1 -0
- package/lib/Styling.js +3 -3
- package/lib/Styling.js.map +1 -1
- package/lib/Utilities.js +1 -19
- package/lib/Utilities.js.map +1 -1
- package/lib/components/AreaChart/AreaChart.base.d.ts +3 -3
- package/lib/components/AreaChart/AreaChart.base.js +53 -30
- package/lib/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib/components/AreaChart/AreaChart.types.d.ts +5 -0
- package/lib/components/AreaChart/AreaChart.types.js.map +1 -1
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +18 -11
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/lib/components/DonutChart/DonutChart.base.js +3 -1
- package/lib/components/DonutChart/DonutChart.base.js.map +1 -1
- package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js +3 -1
- package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
- package/lib/components/SankeyChart/SankeyChart.base.js +1 -1
- package/lib/components/SankeyChart/SankeyChart.base.js.map +1 -1
- package/lib/components/StackedBarChart/MultiStackedBarChart.base.js +3 -1
- package/lib/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
- package/lib/components/StackedBarChart/StackedBarChart.base.js +3 -1
- package/lib/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +1 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
- package/lib/utilities/SVGTooltipText.js +1 -1
- package/lib/utilities/SVGTooltipText.js.map +1 -1
- package/lib-amd/Styling.js +3 -3
- package/lib-amd/Styling.js.map +1 -1
- package/lib-amd/Utilities.js +0 -9
- package/lib-amd/Utilities.js.map +1 -1
- package/lib-amd/components/AreaChart/AreaChart.base.d.ts +3 -3
- package/lib-amd/components/AreaChart/AreaChart.base.js +53 -30
- package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib-amd/components/AreaChart/AreaChart.types.d.ts +5 -0
- package/lib-amd/components/AreaChart/AreaChart.types.js.map +1 -1
- package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js +17 -11
- package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/lib-amd/components/DonutChart/DonutChart.base.js +3 -1
- package/lib-amd/components/DonutChart/DonutChart.base.js.map +1 -1
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js +3 -1
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
- package/lib-amd/components/SankeyChart/SankeyChart.base.js +1 -1
- package/lib-amd/components/SankeyChart/SankeyChart.base.js.map +1 -1
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js +3 -1
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
- package/lib-amd/components/StackedBarChart/StackedBarChart.base.js +3 -1
- package/lib-amd/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +1 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
- package/lib-amd/utilities/SVGTooltipText.js +1 -1
- package/lib-amd/utilities/SVGTooltipText.js.map +1 -1
- package/lib-commonjs/Styling.js +3 -3
- package/lib-commonjs/Styling.js.map +1 -1
- package/lib-commonjs/Utilities.js +0 -9
- package/lib-commonjs/Utilities.js.map +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.base.d.ts +3 -3
- package/lib-commonjs/components/AreaChart/AreaChart.base.js +53 -30
- package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.types.d.ts +5 -0
- package/lib-commonjs/components/AreaChart/AreaChart.types.js.map +1 -1
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +17 -10
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/lib-commonjs/components/DonutChart/DonutChart.base.js +3 -1
- package/lib-commonjs/components/DonutChart/DonutChart.base.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.js +3 -1
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.base.js +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.base.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js +3 -1
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js +3 -1
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
- package/lib-commonjs/utilities/SVGTooltipText.js +1 -1
- package/lib-commonjs/utilities/SVGTooltipText.js.map +1 -1
- package/package.json +3 -3
- package/src/components/AreaChart/AreaChart.types.ts +6 -0
|
@@ -200,6 +200,7 @@ export interface IAreaChartProps extends ICartesianChartProps {
|
|
|
200
200
|
data: IChartProps;
|
|
201
201
|
enableGradient?: boolean;
|
|
202
202
|
enablePerfOptimization?: boolean;
|
|
203
|
+
mode?: 'tozeroy' | 'tonexty';
|
|
203
204
|
onRenderCalloutPerDataPoint?: IRenderFunction<ICustomizedCalloutData>;
|
|
204
205
|
onRenderCalloutPerStack?: IRenderFunction<ICustomizedCalloutData>;
|
|
205
206
|
// (undocumented)
|
package/lib/Styling.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { AnimationClassNames, AnimationStyles, AnimationVariables, ColorClassNames, DefaultEffects, DefaultFontStyles, DefaultPalette,
|
|
2
|
-
// eslint-disable-next-line
|
|
2
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
3
3
|
EdgeChromiumHighContrastSelector, FontClassNames, FontSizes, FontWeights, HighContrastSelector, HighContrastSelectorBlack, HighContrastSelectorWhite, IconFontSizes, InjectionMode, PulsingBeaconAnimationStyles, ScreenWidthMaxLarge, ScreenWidthMaxMedium, ScreenWidthMaxSmall, ScreenWidthMaxXLarge, ScreenWidthMaxXXLarge, ScreenWidthMinLarge, ScreenWidthMinMedium, ScreenWidthMinSmall, ScreenWidthMinUhfMobile, ScreenWidthMinXLarge, ScreenWidthMinXXLarge, ScreenWidthMinXXXLarge, Stylesheet, ThemeSettingName, ZIndexes, buildClassMap, concatStyleSets, concatStyleSetsWithProps, createFontStyles, createTheme, focusClear, fontFace,
|
|
4
|
-
// eslint-disable-next-line
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
5
5
|
getEdgeChromiumNoHighContrastAdjustSelector, getFadedOverflowStyle, getFocusOutlineStyle,
|
|
6
|
-
// eslint-disable-next-line
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
7
7
|
getFocusStyle, getGlobalClassNames, getHighContrastNoAdjustStyle, getIcon, getIconClassName, getInputFocusStyle, getPlaceholderStyles, getScreenSelector, getTheme, getThemedContext, hiddenContentStyle, keyframes, loadTheme, mergeStyleSets, mergeStyles, noWrap, normalize, registerDefaultFontFaces, registerIconAlias, registerIcons, registerOnThemeChangeCallback, removeOnThemeChangeCallback, setIconOptions, unregisterIcons, } from '@fluentui/react/lib/Styling';
|
|
8
8
|
//# sourceMappingURL=Styling.js.map
|
package/lib/Styling.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Styling.js","sourceRoot":"../src/","sources":["Styling.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,cAAc;AACd,
|
|
1
|
+
{"version":3,"file":"Styling.js","sourceRoot":"../src/","sources":["Styling.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,cAAc;AACd,4DAA4D;AAC5D,gCAAgC,EAChC,cAAc,EACd,SAAS,EACT,WAAW,EACX,oBAAoB,EACpB,yBAAyB,EACzB,yBAAyB,EACzB,aAAa,EACb,aAAa,EACb,4BAA4B,EAC5B,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,uBAAuB,EACvB,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,UAAU,EACV,gBAAgB,EAChB,QAAQ,EACR,aAAa,EACb,eAAe,EACf,wBAAwB,EACxB,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,QAAQ;AACR,4DAA4D;AAC5D,2CAA2C,EAC3C,qBAAqB,EACrB,oBAAoB;AACpB,4DAA4D;AAC5D,aAAa,EACb,mBAAmB,EACnB,4BAA4B,EAC5B,OAAO,EACP,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EACjB,QAAQ,EACR,gBAAgB,EAChB,kBAAkB,EAClB,SAAS,EACT,SAAS,EACT,cAAc,EACd,WAAW,EACX,MAAM,EACN,SAAS,EACT,wBAAwB,EACxB,iBAAiB,EACjB,aAAa,EACb,6BAA6B,EAC7B,2BAA2B,EAC3B,cAAc,EACd,eAAe,GAChB,MAAM,6BAA6B,CAAC","sourcesContent":["export {\n AnimationClassNames,\n AnimationStyles,\n AnimationVariables,\n ColorClassNames,\n DefaultEffects,\n DefaultFontStyles,\n DefaultPalette,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n EdgeChromiumHighContrastSelector,\n FontClassNames,\n FontSizes,\n FontWeights,\n HighContrastSelector,\n HighContrastSelectorBlack,\n HighContrastSelectorWhite,\n IconFontSizes,\n InjectionMode,\n PulsingBeaconAnimationStyles,\n ScreenWidthMaxLarge,\n ScreenWidthMaxMedium,\n ScreenWidthMaxSmall,\n ScreenWidthMaxXLarge,\n ScreenWidthMaxXXLarge,\n ScreenWidthMinLarge,\n ScreenWidthMinMedium,\n ScreenWidthMinSmall,\n ScreenWidthMinUhfMobile,\n ScreenWidthMinXLarge,\n ScreenWidthMinXXLarge,\n ScreenWidthMinXXXLarge,\n Stylesheet,\n ThemeSettingName,\n ZIndexes,\n buildClassMap,\n concatStyleSets,\n concatStyleSetsWithProps,\n createFontStyles,\n createTheme,\n focusClear,\n fontFace,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n getEdgeChromiumNoHighContrastAdjustSelector,\n getFadedOverflowStyle,\n getFocusOutlineStyle,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n getFocusStyle,\n getGlobalClassNames,\n getHighContrastNoAdjustStyle,\n getIcon,\n getIconClassName,\n getInputFocusStyle,\n getPlaceholderStyles,\n getScreenSelector,\n getTheme,\n getThemedContext,\n hiddenContentStyle,\n keyframes,\n loadTheme,\n mergeStyleSets,\n mergeStyles,\n noWrap,\n normalize,\n registerDefaultFontFaces,\n registerIconAlias,\n registerIcons,\n registerOnThemeChangeCallback,\n removeOnThemeChangeCallback,\n setIconOptions,\n unregisterIcons,\n} from '@fluentui/react/lib/Styling';\nexport type {\n GlobalClassNames,\n IAnimationStyles,\n IAnimationVariables,\n ICSPSettings,\n IEffects,\n IFontFace,\n IFontStyles,\n IFontWeight,\n IGetFocusStylesOptions,\n IIconOptions,\n IIconRecord,\n IIconSubset,\n IIconSubsetRecord,\n IPalette,\n IPartialTheme,\n IProcessedStyleSet,\n IRawStyle,\n IScheme,\n ISchemeNames,\n ISemanticColors,\n ISemanticTextColors,\n ISpacing,\n IStyle,\n IStyleSet,\n IStyleSheetConfig,\n ITheme,\n} from '@fluentui/react/lib/Styling';\n"]}
|
package/lib/Utilities.js
CHANGED
|
@@ -1,20 +1,2 @@
|
|
|
1
|
-
export { Async, AutoScroll,
|
|
2
|
-
// eslint-disable-next-line deprecation/deprecation
|
|
3
|
-
BaseComponent, Customizations,
|
|
4
|
-
// eslint-disable-next-line deprecation/deprecation
|
|
5
|
-
Customizer, CustomizerContext, DATA_IS_SCROLLABLE_ATTRIBUTE, DATA_PORTAL_ATTRIBUTE, DelayedRender, EventGroup, FabricPerformance, FocusRects, GlobalSettings, IsFocusVisibleClassName, KeyCodes, Rectangle, SELECTION_CHANGE, Selection, SelectionDirection, SelectionMode, addDirectionalKeyCode, addElementAtIndex, allowOverscrollOnElement, allowScrollOnElement, anchorProperties, appendFunction, arraysEqual, asAsync, assertNever, assign, audioProperties, baseElementEvents, baseElementProperties, buttonProperties, calculatePrecision, canUseDOM, classNamesFunction, colGroupProperties, colProperties, composeComponentAs, composeRenderFunction, createArray, createMemoizer, createMergedRef, css, customizable, disableBodyScroll, divProperties, doesElementContainFocus, elementContains, elementContainsAttribute, enableBodyScroll, extendComponent, filteredAssign, find, findElementRecursive, findIndex, findScrollableParent, fitContentToBounds, flatten, focusAsync, focusFirstChild, formProperties, format, getChildren, getDistanceBetweenPoints, getDocument, getElementIndexPath, getFirstFocusable, getFirstTabbable, getFirstVisibleElementFromSelector, getFocusableByIndexPath, getId, getInitials, getLanguage, getLastFocusable, getLastTabbable, getNativeElementProps, getNativeProps, getNextElement, getParent, getPreviousElement, getPropsWithDefaults, getRTL, getRTLSafeKeyCode, getRect,
|
|
6
|
-
// eslint-disable-next-line deprecation/deprecation
|
|
7
|
-
getResourceUrl, getScrollbarWidth, getVirtualParent, getWindow, hasHorizontalOverflow, hasOverflow, hasVerticalOverflow, hoistMethods, hoistStatics, htmlElementProperties, iframeProperties,
|
|
8
|
-
// eslint-disable-next-line deprecation/deprecation
|
|
9
|
-
imageProperties, imgProperties, initializeComponentRef,
|
|
10
|
-
// eslint-disable-next-line deprecation/deprecation
|
|
11
|
-
initializeFocusRects, inputProperties, isControlled, isDirectionalKeyCode, isElementFocusSubZone, isElementFocusZone, isElementTabbable, isElementVisible, isElementVisibleAndNotHidden, isIE11, isIOS, isMac, isVirtualElement, labelProperties, liProperties, mapEnumByName, memoize, memoizeFunction, merge, mergeAriaAttributeValues, mergeCustomizations, mergeScopedSettings, mergeSettings, modalize, nullRender, olProperties, omit, on, optionProperties, portalContainsElement, precisionRound,
|
|
12
|
-
// eslint-disable-next-line deprecation/deprecation
|
|
13
|
-
raiseClick, removeIndex, replaceElement, resetControlledWarnings, resetIds, resetMemoizations, safeRequestAnimationFrame, safeSetTimeout, selectProperties,
|
|
14
|
-
// eslint-disable-next-line deprecation/deprecation
|
|
15
|
-
setBaseUrl, setFocusVisibility,
|
|
16
|
-
// eslint-disable-next-line deprecation/deprecation
|
|
17
|
-
setLanguage, setMemoizeWeakMap, setPortalAttribute, setRTL,
|
|
18
|
-
// eslint-disable-next-line deprecation/deprecation
|
|
19
|
-
setSSR, setVirtualParent, setWarningCallback, shallowCompare, shouldWrapFocus, styled, tableProperties, tdProperties, textAreaProperties, thProperties, toMatrix, trProperties, unhoistMethods, useCustomizationSettings, useFocusRects, values, videoProperties, warn, warnConditionallyRequiredProps, warnControlledUsage, warnDeprecations, warnMutuallyExclusive, } from '@fluentui/react/lib/Utilities';
|
|
1
|
+
export { Async, AutoScroll, BaseComponent, Customizations, Customizer, CustomizerContext, DATA_IS_SCROLLABLE_ATTRIBUTE, DATA_PORTAL_ATTRIBUTE, DelayedRender, EventGroup, FabricPerformance, FocusRects, GlobalSettings, IsFocusVisibleClassName, KeyCodes, Rectangle, SELECTION_CHANGE, Selection, SelectionDirection, SelectionMode, addDirectionalKeyCode, addElementAtIndex, allowOverscrollOnElement, allowScrollOnElement, anchorProperties, appendFunction, arraysEqual, asAsync, assertNever, assign, audioProperties, baseElementEvents, baseElementProperties, buttonProperties, calculatePrecision, canUseDOM, classNamesFunction, colGroupProperties, colProperties, composeComponentAs, composeRenderFunction, createArray, createMemoizer, createMergedRef, css, customizable, disableBodyScroll, divProperties, doesElementContainFocus, elementContains, elementContainsAttribute, enableBodyScroll, extendComponent, filteredAssign, find, findElementRecursive, findIndex, findScrollableParent, fitContentToBounds, flatten, focusAsync, focusFirstChild, formProperties, format, getChildren, getDistanceBetweenPoints, getDocument, getElementIndexPath, getFirstFocusable, getFirstTabbable, getFirstVisibleElementFromSelector, getFocusableByIndexPath, getId, getInitials, getLanguage, getLastFocusable, getLastTabbable, getNativeElementProps, getNativeProps, getNextElement, getParent, getPreviousElement, getPropsWithDefaults, getRTL, getRTLSafeKeyCode, getRect, getResourceUrl, getScrollbarWidth, getVirtualParent, getWindow, hasHorizontalOverflow, hasOverflow, hasVerticalOverflow, hoistMethods, hoistStatics, htmlElementProperties, iframeProperties, imageProperties, imgProperties, initializeComponentRef, initializeFocusRects, inputProperties, isControlled, isDirectionalKeyCode, isElementFocusSubZone, isElementFocusZone, isElementTabbable, isElementVisible, isElementVisibleAndNotHidden, isIE11, isIOS, isMac, isVirtualElement, labelProperties, liProperties, mapEnumByName, memoize, memoizeFunction, merge, mergeAriaAttributeValues, mergeCustomizations, mergeScopedSettings, mergeSettings, modalize, nullRender, olProperties, omit, on, optionProperties, portalContainsElement, precisionRound, raiseClick, removeIndex, replaceElement, resetControlledWarnings, resetIds, resetMemoizations, safeRequestAnimationFrame, safeSetTimeout, selectProperties, setBaseUrl, setFocusVisibility, setLanguage, setMemoizeWeakMap, setPortalAttribute, setRTL, setSSR, setVirtualParent, setWarningCallback, shallowCompare, shouldWrapFocus, styled, tableProperties, tdProperties, textAreaProperties, thProperties, toMatrix, trProperties, unhoistMethods, useCustomizationSettings, useFocusRects, values, videoProperties, warn, warnConditionallyRequiredProps, warnControlledUsage, warnDeprecations, warnMutuallyExclusive, } from '@fluentui/react/lib/Utilities';
|
|
20
2
|
//# sourceMappingURL=Utilities.js.map
|
package/lib/Utilities.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Utilities.js","sourceRoot":"../src/","sources":["Utilities.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,UAAU
|
|
1
|
+
{"version":3,"file":"Utilities.js","sourceRoot":"../src/","sources":["Utilities.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,UAAU,EACV,aAAa,EACb,cAAc,EACd,UAAU,EACV,iBAAiB,EACjB,4BAA4B,EAC5B,qBAAqB,EACrB,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,UAAU,EACV,cAAc,EACd,uBAAuB,EACvB,QAAQ,EACR,SAAS,EACT,gBAAgB,EAChB,SAAS,EACT,kBAAkB,EAClB,aAAa,EACb,qBAAqB,EACrB,iBAAiB,EACjB,wBAAwB,EACxB,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,OAAO,EACP,WAAW,EACX,MAAM,EACN,eAAe,EACf,iBAAiB,EACjB,qBAAqB,EACrB,gBAAgB,EAChB,kBAAkB,EAClB,SAAS,EACT,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,qBAAqB,EACrB,WAAW,EACX,cAAc,EACd,eAAe,EACf,GAAG,EACH,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,uBAAuB,EACvB,eAAe,EACf,wBAAwB,EACxB,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,IAAI,EACJ,oBAAoB,EACpB,SAAS,EACT,oBAAoB,EACpB,kBAAkB,EAClB,OAAO,EACP,UAAU,EACV,eAAe,EACf,cAAc,EACd,MAAM,EACN,WAAW,EACX,wBAAwB,EACxB,WAAW,EACX,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,kCAAkC,EAClC,uBAAuB,EACvB,KAAK,EACL,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,qBAAqB,EACrB,cAAc,EACd,cAAc,EACd,SAAS,EACT,kBAAkB,EAClB,oBAAoB,EACpB,MAAM,EACN,iBAAiB,EACjB,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,SAAS,EACT,qBAAqB,EACrB,WAAW,EACX,mBAAmB,EACnB,YAAY,EACZ,YAAY,EACZ,qBAAqB,EACrB,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,sBAAsB,EACtB,oBAAoB,EACpB,eAAe,EACf,YAAY,EACZ,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,4BAA4B,EAC5B,MAAM,EACN,KAAK,EACL,KAAK,EACL,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,aAAa,EACb,OAAO,EACP,eAAe,EACf,KAAK,EACL,wBAAwB,EACxB,mBAAmB,EACnB,mBAAmB,EACnB,aAAa,EACb,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,IAAI,EACJ,EAAE,EACF,gBAAgB,EAChB,qBAAqB,EACrB,cAAc,EACd,UAAU,EACV,WAAW,EACX,cAAc,EACd,uBAAuB,EACvB,QAAQ,EACR,iBAAiB,EACjB,yBAAyB,EACzB,cAAc,EACd,gBAAgB,EAChB,UAAU,EACV,kBAAkB,EAClB,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,MAAM,EACN,MAAM,EACN,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,MAAM,EACN,eAAe,EACf,YAAY,EACZ,kBAAkB,EAClB,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,wBAAwB,EACxB,aAAa,EACb,MAAM,EACN,eAAe,EACf,IAAI,EACJ,8BAA8B,EAC9B,mBAAmB,EACnB,gBAAgB,EAChB,qBAAqB,GACtB,MAAM,+BAA+B,CAAC","sourcesContent":["export {\n Async,\n AutoScroll,\n BaseComponent,\n Customizations,\n Customizer,\n CustomizerContext,\n DATA_IS_SCROLLABLE_ATTRIBUTE,\n DATA_PORTAL_ATTRIBUTE,\n DelayedRender,\n EventGroup,\n FabricPerformance,\n FocusRects,\n GlobalSettings,\n IsFocusVisibleClassName,\n KeyCodes,\n Rectangle,\n SELECTION_CHANGE,\n Selection,\n SelectionDirection,\n SelectionMode,\n addDirectionalKeyCode,\n addElementAtIndex,\n allowOverscrollOnElement,\n allowScrollOnElement,\n anchorProperties,\n appendFunction,\n arraysEqual,\n asAsync,\n assertNever,\n assign,\n audioProperties,\n baseElementEvents,\n baseElementProperties,\n buttonProperties,\n calculatePrecision,\n canUseDOM,\n classNamesFunction,\n colGroupProperties,\n colProperties,\n composeComponentAs,\n composeRenderFunction,\n createArray,\n createMemoizer,\n createMergedRef,\n css,\n customizable,\n disableBodyScroll,\n divProperties,\n doesElementContainFocus,\n elementContains,\n elementContainsAttribute,\n enableBodyScroll,\n extendComponent,\n filteredAssign,\n find,\n findElementRecursive,\n findIndex,\n findScrollableParent,\n fitContentToBounds,\n flatten,\n focusAsync,\n focusFirstChild,\n formProperties,\n format,\n getChildren,\n getDistanceBetweenPoints,\n getDocument,\n getElementIndexPath,\n getFirstFocusable,\n getFirstTabbable,\n getFirstVisibleElementFromSelector,\n getFocusableByIndexPath,\n getId,\n getInitials,\n getLanguage,\n getLastFocusable,\n getLastTabbable,\n getNativeElementProps,\n getNativeProps,\n getNextElement,\n getParent,\n getPreviousElement,\n getPropsWithDefaults,\n getRTL,\n getRTLSafeKeyCode,\n getRect,\n getResourceUrl,\n getScrollbarWidth,\n getVirtualParent,\n getWindow,\n hasHorizontalOverflow,\n hasOverflow,\n hasVerticalOverflow,\n hoistMethods,\n hoistStatics,\n htmlElementProperties,\n iframeProperties,\n imageProperties,\n imgProperties,\n initializeComponentRef,\n initializeFocusRects,\n inputProperties,\n isControlled,\n isDirectionalKeyCode,\n isElementFocusSubZone,\n isElementFocusZone,\n isElementTabbable,\n isElementVisible,\n isElementVisibleAndNotHidden,\n isIE11,\n isIOS,\n isMac,\n isVirtualElement,\n labelProperties,\n liProperties,\n mapEnumByName,\n memoize,\n memoizeFunction,\n merge,\n mergeAriaAttributeValues,\n mergeCustomizations,\n mergeScopedSettings,\n mergeSettings,\n modalize,\n nullRender,\n olProperties,\n omit,\n on,\n optionProperties,\n portalContainsElement,\n precisionRound,\n raiseClick,\n removeIndex,\n replaceElement,\n resetControlledWarnings,\n resetIds,\n resetMemoizations,\n safeRequestAnimationFrame,\n safeSetTimeout,\n selectProperties,\n setBaseUrl,\n setFocusVisibility,\n setLanguage,\n setMemoizeWeakMap,\n setPortalAttribute,\n setRTL,\n setSSR,\n setVirtualParent,\n setWarningCallback,\n shallowCompare,\n shouldWrapFocus,\n styled,\n tableProperties,\n tdProperties,\n textAreaProperties,\n thProperties,\n toMatrix,\n trProperties,\n unhoistMethods,\n useCustomizationSettings,\n useFocusRects,\n values,\n videoProperties,\n warn,\n warnConditionallyRequiredProps,\n warnControlledUsage,\n warnDeprecations,\n warnMutuallyExclusive,\n} from '@fluentui/react/lib/Utilities';\nexport type {\n FitMode,\n IAsAsyncOptions,\n IBaseProps,\n ICancelable,\n IChangeDescription,\n IChangeEventCallback,\n IClassNames,\n IClassNamesFunctionOptions,\n IComponentAs,\n IComponentAsProps,\n ICssInput,\n ICustomizableProps,\n ICustomizations,\n ICustomizerContext,\n ICustomizerProps,\n IDeclaredEventsByName,\n IDelayedRenderProps,\n IDelayedRenderState,\n IDictionary,\n IDisposable,\n IEventRecord,\n IEventRecordList,\n IEventRecordsByName,\n IFitContentToBoundsOptions,\n IObjectWithKey,\n IPerfData,\n IPerfMeasurement,\n IPerfSummary,\n IPoint,\n IPropsWithStyles,\n IRectangle,\n IRefObject,\n IRenderComponent,\n IRenderFunction,\n ISelection,\n ISelectionOptions,\n ISelectionOptionsWithRequiredGetKey,\n ISerializableObject,\n ISettings,\n ISettingsFunction,\n ISettingsMap,\n ISize,\n IStyleFunction,\n IStyleFunctionOrObject,\n IVirtualElement,\n IWarnControlledUsageParams,\n Omit,\n Point,\n RefObject,\n Settings,\n SettingsFunction,\n StyleFunction,\n} from '@fluentui/react/lib/Utilities';\n"]}
|
|
@@ -10,7 +10,7 @@ export interface IAreaChartAreaPoint {
|
|
|
10
10
|
values: IAreaChartDataSetPoint;
|
|
11
11
|
}
|
|
12
12
|
export interface IAreaChartDataSetPoint {
|
|
13
|
-
[key: string]: number | string;
|
|
13
|
+
[key: string]: number | string | number[];
|
|
14
14
|
}
|
|
15
15
|
export interface IDPointType {
|
|
16
16
|
values: {
|
|
@@ -47,7 +47,7 @@ export declare class AreaChartBase extends React.Component<IAreaChartProps, IAre
|
|
|
47
47
|
private _verticalLineId;
|
|
48
48
|
private _circleId;
|
|
49
49
|
private _uniqueCallOutID;
|
|
50
|
-
private
|
|
50
|
+
private _data;
|
|
51
51
|
private _chart;
|
|
52
52
|
private margins;
|
|
53
53
|
private _rectId;
|
|
@@ -71,7 +71,7 @@ export declare class AreaChartBase extends React.Component<IAreaChartProps, IAre
|
|
|
71
71
|
*/
|
|
72
72
|
private _onRectMouseOut;
|
|
73
73
|
private _handleChartMouseLeave;
|
|
74
|
-
private
|
|
74
|
+
private _getDataPoints;
|
|
75
75
|
private _createDataSet;
|
|
76
76
|
private _getCustomizedCallout;
|
|
77
77
|
private _getGraphData;
|
|
@@ -163,25 +163,47 @@ var AreaChartBase = /** @class */ (function (_super) {
|
|
|
163
163
|
});
|
|
164
164
|
};
|
|
165
165
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
166
|
-
_this.
|
|
167
|
-
var
|
|
168
|
-
var
|
|
169
|
-
var
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
166
|
+
_this._getDataPoints = function (keys, dataSet) {
|
|
167
|
+
var _a;
|
|
168
|
+
var renderPoints = [];
|
|
169
|
+
var maxOfYVal = 0;
|
|
170
|
+
if (_this.props.mode === 'tozeroy') {
|
|
171
|
+
keys.forEach(function (key, index) {
|
|
172
|
+
var currentLayer = [];
|
|
173
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
174
|
+
dataSet.forEach(function (d) {
|
|
175
|
+
currentLayer.push({
|
|
176
|
+
values: [0, d[key]], // Start from zero for "tozeroy" mode
|
|
177
|
+
xVal: d.xVal,
|
|
178
|
+
});
|
|
179
|
+
if (d[key] > maxOfYVal) {
|
|
180
|
+
maxOfYVal = d[key];
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
renderPoints.push(currentLayer);
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
var dataValues = d3Stack().keys(keys)(dataSet);
|
|
188
|
+
maxOfYVal = d3Max(dataValues[dataValues.length - 1], function (dp) { return dp[1]; });
|
|
173
189
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
190
|
+
dataValues.forEach(function (layer) {
|
|
191
|
+
var currentLayer = [];
|
|
192
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
193
|
+
layer.forEach(function (d) {
|
|
194
|
+
currentLayer.push({
|
|
195
|
+
values: d,
|
|
196
|
+
xVal: d.data.xVal,
|
|
197
|
+
});
|
|
178
198
|
});
|
|
199
|
+
renderPoints.push(currentLayer);
|
|
179
200
|
});
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
201
|
+
}
|
|
202
|
+
_this._isMultiStackChart = !!(((_a = _this.props.legendProps) === null || _a === void 0 ? void 0 : _a.selectedLegends)
|
|
203
|
+
? (renderPoints === null || renderPoints === void 0 ? void 0 : renderPoints.length) >= 1
|
|
204
|
+
: (renderPoints === null || renderPoints === void 0 ? void 0 : renderPoints.length) > 1);
|
|
183
205
|
return {
|
|
184
|
-
|
|
206
|
+
renderData: renderPoints,
|
|
185
207
|
maxOfYVal: maxOfYVal,
|
|
186
208
|
};
|
|
187
209
|
};
|
|
@@ -220,20 +242,20 @@ var AreaChartBase = /** @class */ (function (_super) {
|
|
|
220
242
|
});
|
|
221
243
|
dataSet_1.push(singleDataset);
|
|
222
244
|
});
|
|
223
|
-
// get keys from dataset, used to
|
|
245
|
+
// get keys from dataset, used to render data
|
|
224
246
|
var keysLength = dataSet_1 && Object.keys(dataSet_1[0]).length;
|
|
225
247
|
var keys = [];
|
|
226
248
|
for (var i = 0; i < keysLength - 1; i++) {
|
|
227
249
|
var keyVal = "chart".concat(i);
|
|
228
250
|
keys.push(keyVal);
|
|
229
251
|
}
|
|
230
|
-
//
|
|
231
|
-
var
|
|
252
|
+
// Data used to draw graph
|
|
253
|
+
var data = _this._getDataPoints(keys, dataSet_1);
|
|
232
254
|
return {
|
|
233
255
|
colors: colors_1,
|
|
234
256
|
opacity: opacity_1,
|
|
235
257
|
keys: keys,
|
|
236
|
-
|
|
258
|
+
data: data,
|
|
237
259
|
calloutPoints: calloutPoints,
|
|
238
260
|
};
|
|
239
261
|
}
|
|
@@ -275,13 +297,13 @@ var AreaChartBase = /** @class */ (function (_super) {
|
|
|
275
297
|
var keyVal = "chart".concat(i);
|
|
276
298
|
keys.push(keyVal);
|
|
277
299
|
}
|
|
278
|
-
//
|
|
279
|
-
var
|
|
300
|
+
// Data used to draw graph
|
|
301
|
+
var data = _this._getDataPoints(keys, dataSet);
|
|
280
302
|
return {
|
|
281
303
|
colors: colors_2,
|
|
282
304
|
opacity: opacity_2,
|
|
283
305
|
keys: keys,
|
|
284
|
-
|
|
306
|
+
data: data,
|
|
285
307
|
calloutPoints: calloutPoints,
|
|
286
308
|
};
|
|
287
309
|
}
|
|
@@ -385,15 +407,16 @@ var AreaChartBase = /** @class */ (function (_super) {
|
|
|
385
407
|
var graph = [];
|
|
386
408
|
var lineColor;
|
|
387
409
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
388
|
-
_this.
|
|
410
|
+
_this._data.forEach(function (singleStackedData, index) {
|
|
389
411
|
var _a, _b, _c, _d, _e;
|
|
412
|
+
var layerOpacity = _this.props.mode === 'tozeroy' ? 0.8 : _this._opacity[index];
|
|
390
413
|
graph.push(React.createElement(React.Fragment, { key: "".concat(index, "-graph-").concat(_this._uniqueIdForGraph) },
|
|
391
414
|
_this.props.enableGradient && (React.createElement("defs", null,
|
|
392
415
|
React.createElement("linearGradient", { id: "gradient_".concat(index), x1: "0%", x2: "0%", y1: "0%", y2: "100%" },
|
|
393
416
|
React.createElement("stop", { offset: "0", stopColor: _this._colors[index] }),
|
|
394
417
|
React.createElement("stop", { offset: "100%", stopColor: "transparent" })))),
|
|
395
418
|
React.createElement("path", { id: "".concat(index, "-line-").concat(_this._uniqueIdForGraph), d: line(singleStackedData), fill: 'transparent', strokeWidth: (_b = (_a = points[index].lineOptions) === null || _a === void 0 ? void 0 : _a.strokeWidth) !== null && _b !== void 0 ? _b : 3, stroke: _this._colors[index], opacity: _this._getLineOpacity(points[index].legend), onMouseMove: _this._onRectMouseMove, onMouseOut: _this._onRectMouseOut, onMouseOver: _this._onRectMouseMove, strokeDasharray: (_c = points[index].lineOptions) === null || _c === void 0 ? void 0 : _c.strokeDasharray, strokeDashoffset: (_d = points[index].lineOptions) === null || _d === void 0 ? void 0 : _d.strokeDashoffset, strokeLinecap: (_e = points[index].lineOptions) === null || _e === void 0 ? void 0 : _e.strokeLinecap }),
|
|
396
|
-
singleStackedData.length === 1 ? (React.createElement("circle", { id: "".concat(index, "-graph-").concat(_this._uniqueIdForGraph), cx: xScale(singleStackedData[0].xVal), cy: yScale(singleStackedData[0].values[1]), r: 6, stroke: _this._colors[index], strokeWidth: 3, fill: _this._colors[index], opacity:
|
|
419
|
+
singleStackedData.length === 1 ? (React.createElement("circle", { id: "".concat(index, "-graph-").concat(_this._uniqueIdForGraph), cx: xScale(singleStackedData[0].xVal), cy: yScale(singleStackedData[0].values[1]), r: 6, stroke: _this._colors[index], strokeWidth: 3, fill: _this._colors[index], opacity: layerOpacity, fillOpacity: _this._getOpacity(points[index].legend), onMouseMove: _this._onRectMouseMove, onMouseOut: _this._onRectMouseOut, onMouseOver: _this._onRectMouseMove })) : (React.createElement("path", __assign({ id: "".concat(index, "-graph-").concat(_this._uniqueIdForGraph), d: area(singleStackedData), fill: _this.props.enableGradient ? "url(#gradient_".concat(index, ")") : _this._colors[index], opacity: layerOpacity, fillOpacity: _this._getOpacity(points[index].legend), onMouseMove: _this._onRectMouseMove, onMouseOut: _this._onRectMouseOut, onMouseOver: _this._onRectMouseMove }, (_this.props.optimizeLargeData && {
|
|
397
420
|
'data-is-focusable': _this._legendHighlighted(points[index].legend) || _this._noLegendHighlighted(),
|
|
398
421
|
role: 'img',
|
|
399
422
|
'aria-label': "".concat(points[index].legend, ", series ").concat(index + 1, " of ").concat(points.length, " with ").concat(points[index].data.length, " data points."),
|
|
@@ -401,14 +424,14 @@ var AreaChartBase = /** @class */ (function (_super) {
|
|
|
401
424
|
});
|
|
402
425
|
var circleRadius = pointOptions && pointOptions.r ? Number(pointOptions.r) : 8;
|
|
403
426
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
404
|
-
_this.
|
|
427
|
+
_this._data.forEach(function (singleStackedData, index) {
|
|
405
428
|
if (points.length === index) {
|
|
406
429
|
return;
|
|
407
430
|
}
|
|
408
431
|
if (!_this.props.optimizeLargeData || singleStackedData.length === 1) {
|
|
409
432
|
// Render circles for all data points
|
|
410
433
|
graph.push(React.createElement("g", { key: "".concat(index, "-dots-").concat(_this._uniqueIdForGraph), d: area(singleStackedData), clipPath: "url(#clip)", role: "region", "aria-label": "".concat(points[index].legend, ", series ").concat(index + 1, " of ").concat(points.length, " with ").concat(points[index].data.length, " data points.") }, singleStackedData.map(function (singlePoint, pointIndex) {
|
|
411
|
-
var circleId = "".concat(_this._circleId, "_").concat(index * _this.
|
|
434
|
+
var circleId = "".concat(_this._circleId, "_").concat(index * _this._data[0].length + pointIndex);
|
|
412
435
|
var xDataPoint = singlePoint.xVal instanceof Date ? singlePoint.xVal.getTime() : singlePoint.xVal;
|
|
413
436
|
lineColor = points[index].color;
|
|
414
437
|
var legend = points[index].legend;
|
|
@@ -420,7 +443,7 @@ var AreaChartBase = /** @class */ (function (_super) {
|
|
|
420
443
|
singleStackedData.forEach(function (singlePoint, pointIndex) {
|
|
421
444
|
var xDataPoint = singlePoint.xVal instanceof Date ? singlePoint.xVal.getTime() : singlePoint.xVal;
|
|
422
445
|
if (_this.state.nearestCircleToHighlight === xDataPoint) {
|
|
423
|
-
var circleId = "".concat(_this._circleId, "_").concat(index * _this.
|
|
446
|
+
var circleId = "".concat(_this._circleId, "_").concat(index * _this._data[0].length + pointIndex);
|
|
424
447
|
lineColor = points[index].color;
|
|
425
448
|
var legend = points[index].legend;
|
|
426
449
|
graph.push(React.createElement("circle", __assign({ key: circleId, id: circleId, cx: xScale(singlePoint.xVal), cy: yScale(singlePoint.values[1]), stroke: lineColor, strokeWidth: 3, fill: _this._updateCircleFillColor(xDataPoint, lineColor, circleId), onMouseOut: _this._onRectMouseOut, onMouseOver: _this._onRectMouseMove, onClick: _this._onDataPointClick.bind(_this, points[index].data[pointIndex].onDataPointClick) }, getSecureProps(pointOptions), { r: _this._getCircleRadius(xDataPoint, circleRadius, circleId, legend) })));
|
|
@@ -599,19 +622,19 @@ var AreaChartBase = /** @class */ (function (_super) {
|
|
|
599
622
|
if (!this._isChartEmpty()) {
|
|
600
623
|
var lineChartData = this.props.data.lineChartData;
|
|
601
624
|
var points = this._addDefaultColors(lineChartData);
|
|
602
|
-
var _a = this._createSet(points), colors = _a.colors, opacity = _a.opacity,
|
|
625
|
+
var _a = this._createSet(points), colors = _a.colors, opacity = _a.opacity, data = _a.data, calloutPoints = _a.calloutPoints;
|
|
603
626
|
this._calloutPoints = calloutPoints;
|
|
604
627
|
var isXAxisDateType = getXAxisType(points);
|
|
605
628
|
this._colors = colors;
|
|
606
629
|
this._opacity = opacity;
|
|
607
|
-
this.
|
|
630
|
+
this._data = data.renderData;
|
|
608
631
|
var legends = this._getLegendData(points);
|
|
609
632
|
var tickParams = {
|
|
610
633
|
tickValues: this.props.tickValues,
|
|
611
634
|
tickFormat: this.props.tickFormat,
|
|
612
635
|
};
|
|
613
636
|
var calloutProps = __assign({ target: this.state.refSelected, isCalloutVisible: this.state.isCalloutVisible, directionalHint: DirectionalHint.topAutoEdge, YValueHover: this.state.YValueHover, hoverXValue: this.state.hoverXValue, id: "toolTip".concat(this._uniqueCallOutID), gapSpace: 15, isBeakVisible: false, onDismiss: this._closeCallout, 'data-is-focusable': true, xAxisCalloutAccessibilityData: this.state.xAxisCalloutAccessibilityData }, this.props.calloutProps);
|
|
614
|
-
return (React.createElement(CartesianChart, __assign({}, this.props, { chartTitle: this._getChartTitle(), points: points, chartType: ChartTypes.AreaChart, calloutProps: calloutProps, legendBars: legends, createYAxis: createNumericYAxis, isCalloutForStack: true, xAxisType: isXAxisDateType ? XAxisTypes.DateAxis : XAxisTypes.NumericAxis, tickParams: tickParams, maxOfYVal:
|
|
637
|
+
return (React.createElement(CartesianChart, __assign({}, this.props, { chartTitle: this._getChartTitle(), points: points, chartType: ChartTypes.AreaChart, calloutProps: calloutProps, legendBars: legends, createYAxis: createNumericYAxis, isCalloutForStack: true, xAxisType: isXAxisDateType ? XAxisTypes.DateAxis : XAxisTypes.NumericAxis, tickParams: tickParams, maxOfYVal: data.maxOfYVal, getGraphData: this._getGraphData, getDomainNRangeValues: this._getDomainNRangeValues, createStringYAxis: createStringYAxis, getmargins: this._getMargins, getMinMaxOfYAxis: findNumericMinMaxOfY, customizedCallout: this._getCustomizedCallout(), onChartMouseLeave: this._handleChartMouseLeave, enableFirstRenderOptimization: this.props.enablePerfOptimization && this._firstRenderOptimization, ref: this._cartesianChartRef,
|
|
615
638
|
/* eslint-disable react/jsx-no-bind */
|
|
616
639
|
// eslint-disable-next-line react/no-children-prop
|
|
617
640
|
children: function (props) {
|