@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.
Files changed (83) hide show
  1. package/CHANGELOG.json +57 -1
  2. package/CHANGELOG.md +23 -2
  3. package/dist/react-charting.d.ts +5 -0
  4. package/dist/react-charting.js +1 -1
  5. package/dist/react-charting.min.js +1 -1
  6. package/etc/react-charting.api.md +1 -0
  7. package/lib/Styling.js +3 -3
  8. package/lib/Styling.js.map +1 -1
  9. package/lib/Utilities.js +1 -19
  10. package/lib/Utilities.js.map +1 -1
  11. package/lib/components/AreaChart/AreaChart.base.d.ts +3 -3
  12. package/lib/components/AreaChart/AreaChart.base.js +53 -30
  13. package/lib/components/AreaChart/AreaChart.base.js.map +1 -1
  14. package/lib/components/AreaChart/AreaChart.types.d.ts +5 -0
  15. package/lib/components/AreaChart/AreaChart.types.js.map +1 -1
  16. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +18 -11
  17. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  18. package/lib/components/DonutChart/DonutChart.base.js +3 -1
  19. package/lib/components/DonutChart/DonutChart.base.js.map +1 -1
  20. package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js +3 -1
  21. package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
  22. package/lib/components/SankeyChart/SankeyChart.base.js +1 -1
  23. package/lib/components/SankeyChart/SankeyChart.base.js.map +1 -1
  24. package/lib/components/StackedBarChart/MultiStackedBarChart.base.js +3 -1
  25. package/lib/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
  26. package/lib/components/StackedBarChart/StackedBarChart.base.js +3 -1
  27. package/lib/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
  28. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +1 -1
  29. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  30. package/lib/utilities/SVGTooltipText.js +1 -1
  31. package/lib/utilities/SVGTooltipText.js.map +1 -1
  32. package/lib-amd/Styling.js +3 -3
  33. package/lib-amd/Styling.js.map +1 -1
  34. package/lib-amd/Utilities.js +0 -9
  35. package/lib-amd/Utilities.js.map +1 -1
  36. package/lib-amd/components/AreaChart/AreaChart.base.d.ts +3 -3
  37. package/lib-amd/components/AreaChart/AreaChart.base.js +53 -30
  38. package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -1
  39. package/lib-amd/components/AreaChart/AreaChart.types.d.ts +5 -0
  40. package/lib-amd/components/AreaChart/AreaChart.types.js.map +1 -1
  41. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js +17 -11
  42. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  43. package/lib-amd/components/DonutChart/DonutChart.base.js +3 -1
  44. package/lib-amd/components/DonutChart/DonutChart.base.js.map +1 -1
  45. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js +3 -1
  46. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
  47. package/lib-amd/components/SankeyChart/SankeyChart.base.js +1 -1
  48. package/lib-amd/components/SankeyChart/SankeyChart.base.js.map +1 -1
  49. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js +3 -1
  50. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
  51. package/lib-amd/components/StackedBarChart/StackedBarChart.base.js +3 -1
  52. package/lib-amd/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
  53. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +1 -1
  54. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  55. package/lib-amd/utilities/SVGTooltipText.js +1 -1
  56. package/lib-amd/utilities/SVGTooltipText.js.map +1 -1
  57. package/lib-commonjs/Styling.js +3 -3
  58. package/lib-commonjs/Styling.js.map +1 -1
  59. package/lib-commonjs/Utilities.js +0 -9
  60. package/lib-commonjs/Utilities.js.map +1 -1
  61. package/lib-commonjs/components/AreaChart/AreaChart.base.d.ts +3 -3
  62. package/lib-commonjs/components/AreaChart/AreaChart.base.js +53 -30
  63. package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -1
  64. package/lib-commonjs/components/AreaChart/AreaChart.types.d.ts +5 -0
  65. package/lib-commonjs/components/AreaChart/AreaChart.types.js.map +1 -1
  66. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +17 -10
  67. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  68. package/lib-commonjs/components/DonutChart/DonutChart.base.js +3 -1
  69. package/lib-commonjs/components/DonutChart/DonutChart.base.js.map +1 -1
  70. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.js +3 -1
  71. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
  72. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js +1 -1
  73. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js.map +1 -1
  74. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js +3 -1
  75. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
  76. package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js +3 -1
  77. package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
  78. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +1 -1
  79. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  80. package/lib-commonjs/utilities/SVGTooltipText.js +1 -1
  81. package/lib-commonjs/utilities/SVGTooltipText.js.map +1 -1
  82. package/package.json +3 -3
  83. package/src/components/AreaChart/AreaChart.types.ts +6 -0
@@ -4,10 +4,8 @@ define(["require", "exports", "@fluentui/react/lib/Utilities"], function (requir
4
4
  exports.warnMutuallyExclusive = exports.warnDeprecations = exports.warnControlledUsage = exports.warnConditionallyRequiredProps = exports.warn = exports.videoProperties = exports.values = exports.useFocusRects = exports.useCustomizationSettings = exports.unhoistMethods = exports.trProperties = exports.toMatrix = exports.thProperties = exports.textAreaProperties = exports.tdProperties = exports.tableProperties = exports.styled = exports.shouldWrapFocus = exports.shallowCompare = exports.setWarningCallback = exports.setVirtualParent = exports.setSSR = exports.setRTL = exports.setPortalAttribute = exports.setMemoizeWeakMap = exports.setLanguage = exports.setFocusVisibility = exports.setBaseUrl = exports.selectProperties = exports.safeSetTimeout = exports.safeRequestAnimationFrame = exports.resetMemoizations = exports.resetIds = exports.resetControlledWarnings = exports.replaceElement = exports.removeIndex = exports.raiseClick = exports.precisionRound = exports.portalContainsElement = exports.optionProperties = exports.on = exports.omit = exports.olProperties = exports.nullRender = exports.modalize = exports.mergeSettings = exports.mergeScopedSettings = exports.mergeCustomizations = exports.mergeAriaAttributeValues = exports.merge = exports.memoizeFunction = exports.memoize = exports.mapEnumByName = exports.liProperties = exports.labelProperties = exports.isVirtualElement = exports.isMac = exports.isIOS = exports.isIE11 = exports.isElementVisibleAndNotHidden = exports.isElementVisible = exports.isElementTabbable = exports.isElementFocusZone = exports.isElementFocusSubZone = exports.isDirectionalKeyCode = exports.isControlled = exports.inputProperties = exports.initializeFocusRects = exports.initializeComponentRef = exports.imgProperties = exports.imageProperties = exports.iframeProperties = exports.htmlElementProperties = exports.hoistStatics = exports.hoistMethods = exports.hasVerticalOverflow = exports.hasOverflow = exports.hasHorizontalOverflow = exports.getWindow = exports.getVirtualParent = exports.getScrollbarWidth = exports.getResourceUrl = exports.getRect = exports.getRTLSafeKeyCode = exports.getRTL = exports.getPropsWithDefaults = exports.getPreviousElement = exports.getParent = exports.getNextElement = exports.getNativeProps = exports.getNativeElementProps = exports.getLastTabbable = exports.getLastFocusable = exports.getLanguage = exports.getInitials = exports.getId = exports.getFocusableByIndexPath = exports.getFirstVisibleElementFromSelector = exports.getFirstTabbable = exports.getFirstFocusable = exports.getElementIndexPath = exports.getDocument = exports.getDistanceBetweenPoints = exports.getChildren = exports.format = exports.formProperties = exports.focusFirstChild = exports.focusAsync = exports.flatten = exports.fitContentToBounds = exports.findScrollableParent = exports.findIndex = exports.findElementRecursive = exports.find = exports.filteredAssign = exports.extendComponent = exports.enableBodyScroll = exports.elementContainsAttribute = exports.elementContains = exports.doesElementContainFocus = exports.divProperties = exports.disableBodyScroll = exports.customizable = exports.css = exports.createMergedRef = exports.createMemoizer = exports.createArray = exports.composeRenderFunction = exports.composeComponentAs = exports.colProperties = exports.colGroupProperties = exports.classNamesFunction = exports.canUseDOM = exports.calculatePrecision = exports.buttonProperties = exports.baseElementProperties = exports.baseElementEvents = exports.audioProperties = exports.assign = exports.assertNever = exports.asAsync = exports.arraysEqual = exports.appendFunction = exports.anchorProperties = exports.allowScrollOnElement = exports.allowOverscrollOnElement = exports.addElementAtIndex = exports.addDirectionalKeyCode = exports.SelectionMode = exports.SelectionDirection = exports.Selection = exports.SELECTION_CHANGE = exports.Rectangle = exports.KeyCodes = exports.IsFocusVisibleClassName = exports.GlobalSettings = exports.FocusRects = exports.FabricPerformance = exports.EventGroup = exports.DelayedRender = exports.DATA_PORTAL_ATTRIBUTE = exports.DATA_IS_SCROLLABLE_ATTRIBUTE = exports.CustomizerContext = exports.Customizer = exports.Customizations = exports.BaseComponent = exports.AutoScroll = exports.Async = void 0;
5
5
  Object.defineProperty(exports, "Async", { enumerable: true, get: function () { return Utilities_1.Async; } });
6
6
  Object.defineProperty(exports, "AutoScroll", { enumerable: true, get: function () { return Utilities_1.AutoScroll; } });
7
- // eslint-disable-next-line deprecation/deprecation
8
7
  Object.defineProperty(exports, "BaseComponent", { enumerable: true, get: function () { return Utilities_1.BaseComponent; } });
9
8
  Object.defineProperty(exports, "Customizations", { enumerable: true, get: function () { return Utilities_1.Customizations; } });
10
- // eslint-disable-next-line deprecation/deprecation
11
9
  Object.defineProperty(exports, "Customizer", { enumerable: true, get: function () { return Utilities_1.Customizer; } });
12
10
  Object.defineProperty(exports, "CustomizerContext", { enumerable: true, get: function () { return Utilities_1.CustomizerContext; } });
13
11
  Object.defineProperty(exports, "DATA_IS_SCROLLABLE_ATTRIBUTE", { enumerable: true, get: function () { return Utilities_1.DATA_IS_SCROLLABLE_ATTRIBUTE; } });
@@ -90,7 +88,6 @@ define(["require", "exports", "@fluentui/react/lib/Utilities"], function (requir
90
88
  Object.defineProperty(exports, "getRTL", { enumerable: true, get: function () { return Utilities_1.getRTL; } });
91
89
  Object.defineProperty(exports, "getRTLSafeKeyCode", { enumerable: true, get: function () { return Utilities_1.getRTLSafeKeyCode; } });
92
90
  Object.defineProperty(exports, "getRect", { enumerable: true, get: function () { return Utilities_1.getRect; } });
93
- // eslint-disable-next-line deprecation/deprecation
94
91
  Object.defineProperty(exports, "getResourceUrl", { enumerable: true, get: function () { return Utilities_1.getResourceUrl; } });
95
92
  Object.defineProperty(exports, "getScrollbarWidth", { enumerable: true, get: function () { return Utilities_1.getScrollbarWidth; } });
96
93
  Object.defineProperty(exports, "getVirtualParent", { enumerable: true, get: function () { return Utilities_1.getVirtualParent; } });
@@ -102,11 +99,9 @@ define(["require", "exports", "@fluentui/react/lib/Utilities"], function (requir
102
99
  Object.defineProperty(exports, "hoistStatics", { enumerable: true, get: function () { return Utilities_1.hoistStatics; } });
103
100
  Object.defineProperty(exports, "htmlElementProperties", { enumerable: true, get: function () { return Utilities_1.htmlElementProperties; } });
104
101
  Object.defineProperty(exports, "iframeProperties", { enumerable: true, get: function () { return Utilities_1.iframeProperties; } });
105
- // eslint-disable-next-line deprecation/deprecation
106
102
  Object.defineProperty(exports, "imageProperties", { enumerable: true, get: function () { return Utilities_1.imageProperties; } });
107
103
  Object.defineProperty(exports, "imgProperties", { enumerable: true, get: function () { return Utilities_1.imgProperties; } });
108
104
  Object.defineProperty(exports, "initializeComponentRef", { enumerable: true, get: function () { return Utilities_1.initializeComponentRef; } });
109
- // eslint-disable-next-line deprecation/deprecation
110
105
  Object.defineProperty(exports, "initializeFocusRects", { enumerable: true, get: function () { return Utilities_1.initializeFocusRects; } });
111
106
  Object.defineProperty(exports, "inputProperties", { enumerable: true, get: function () { return Utilities_1.inputProperties; } });
112
107
  Object.defineProperty(exports, "isControlled", { enumerable: true, get: function () { return Utilities_1.isControlled; } });
@@ -138,7 +133,6 @@ define(["require", "exports", "@fluentui/react/lib/Utilities"], function (requir
138
133
  Object.defineProperty(exports, "optionProperties", { enumerable: true, get: function () { return Utilities_1.optionProperties; } });
139
134
  Object.defineProperty(exports, "portalContainsElement", { enumerable: true, get: function () { return Utilities_1.portalContainsElement; } });
140
135
  Object.defineProperty(exports, "precisionRound", { enumerable: true, get: function () { return Utilities_1.precisionRound; } });
141
- // eslint-disable-next-line deprecation/deprecation
142
136
  Object.defineProperty(exports, "raiseClick", { enumerable: true, get: function () { return Utilities_1.raiseClick; } });
143
137
  Object.defineProperty(exports, "removeIndex", { enumerable: true, get: function () { return Utilities_1.removeIndex; } });
144
138
  Object.defineProperty(exports, "replaceElement", { enumerable: true, get: function () { return Utilities_1.replaceElement; } });
@@ -148,15 +142,12 @@ define(["require", "exports", "@fluentui/react/lib/Utilities"], function (requir
148
142
  Object.defineProperty(exports, "safeRequestAnimationFrame", { enumerable: true, get: function () { return Utilities_1.safeRequestAnimationFrame; } });
149
143
  Object.defineProperty(exports, "safeSetTimeout", { enumerable: true, get: function () { return Utilities_1.safeSetTimeout; } });
150
144
  Object.defineProperty(exports, "selectProperties", { enumerable: true, get: function () { return Utilities_1.selectProperties; } });
151
- // eslint-disable-next-line deprecation/deprecation
152
145
  Object.defineProperty(exports, "setBaseUrl", { enumerable: true, get: function () { return Utilities_1.setBaseUrl; } });
153
146
  Object.defineProperty(exports, "setFocusVisibility", { enumerable: true, get: function () { return Utilities_1.setFocusVisibility; } });
154
- // eslint-disable-next-line deprecation/deprecation
155
147
  Object.defineProperty(exports, "setLanguage", { enumerable: true, get: function () { return Utilities_1.setLanguage; } });
156
148
  Object.defineProperty(exports, "setMemoizeWeakMap", { enumerable: true, get: function () { return Utilities_1.setMemoizeWeakMap; } });
157
149
  Object.defineProperty(exports, "setPortalAttribute", { enumerable: true, get: function () { return Utilities_1.setPortalAttribute; } });
158
150
  Object.defineProperty(exports, "setRTL", { enumerable: true, get: function () { return Utilities_1.setRTL; } });
159
- // eslint-disable-next-line deprecation/deprecation
160
151
  Object.defineProperty(exports, "setSSR", { enumerable: true, get: function () { return Utilities_1.setSSR; } });
161
152
  Object.defineProperty(exports, "setVirtualParent", { enumerable: true, get: function () { return Utilities_1.setVirtualParent; } });
162
153
  Object.defineProperty(exports, "setWarningCallback", { enumerable: true, get: function () { return Utilities_1.setWarningCallback; } });
@@ -1 +1 @@
1
- {"version":3,"file":"Utilities.js","sourceRoot":"../src/","sources":["Utilities.ts"],"names":[],"mappings":";;;;IACE,kGAAA,KAAK,OAAA;IACL,uGAAA,UAAU,OAAA;IACV,mDAAmD;IACnD,0GAAA,aAAa,OAAA;IACb,2GAAA,cAAc,OAAA;IACd,mDAAmD;IACnD,uGAAA,UAAU,OAAA;IACV,8GAAA,iBAAiB,OAAA;IACjB,yHAAA,4BAA4B,OAAA;IAC5B,kHAAA,qBAAqB,OAAA;IACrB,0GAAA,aAAa,OAAA;IACb,uGAAA,UAAU,OAAA;IACV,8GAAA,iBAAiB,OAAA;IACjB,uGAAA,UAAU,OAAA;IACV,2GAAA,cAAc,OAAA;IACd,oHAAA,uBAAuB,OAAA;IACvB,qGAAA,QAAQ,OAAA;IACR,sGAAA,SAAS,OAAA;IACT,6GAAA,gBAAgB,OAAA;IAChB,sGAAA,SAAS,OAAA;IACT,+GAAA,kBAAkB,OAAA;IAClB,0GAAA,aAAa,OAAA;IACb,kHAAA,qBAAqB,OAAA;IACrB,8GAAA,iBAAiB,OAAA;IACjB,qHAAA,wBAAwB,OAAA;IACxB,iHAAA,oBAAoB,OAAA;IACpB,6GAAA,gBAAgB,OAAA;IAChB,2GAAA,cAAc,OAAA;IACd,wGAAA,WAAW,OAAA;IACX,oGAAA,OAAO,OAA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,qBAAqB,OAAA","sourcesContent":["export {\n Async,\n AutoScroll,\n // eslint-disable-next-line deprecation/deprecation\n BaseComponent,\n Customizations,\n // eslint-disable-next-line deprecation/deprecation\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 // eslint-disable-next-line deprecation/deprecation\n getResourceUrl,\n getScrollbarWidth,\n getVirtualParent,\n getWindow,\n hasHorizontalOverflow,\n hasOverflow,\n hasVerticalOverflow,\n hoistMethods,\n hoistStatics,\n htmlElementProperties,\n iframeProperties,\n // eslint-disable-next-line deprecation/deprecation\n imageProperties,\n imgProperties,\n initializeComponentRef,\n // eslint-disable-next-line deprecation/deprecation\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 // eslint-disable-next-line deprecation/deprecation\n raiseClick,\n removeIndex,\n replaceElement,\n resetControlledWarnings,\n resetIds,\n resetMemoizations,\n safeRequestAnimationFrame,\n safeSetTimeout,\n selectProperties,\n // eslint-disable-next-line deprecation/deprecation\n setBaseUrl,\n setFocusVisibility,\n // eslint-disable-next-line deprecation/deprecation\n setLanguage,\n setMemoizeWeakMap,\n setPortalAttribute,\n setRTL,\n // eslint-disable-next-line deprecation/deprecation\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 // eslint-disable-next-line deprecation/deprecation\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 // eslint-disable-next-line deprecation/deprecation\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 // eslint-disable-next-line deprecation/deprecation\n Omit,\n Point,\n RefObject,\n // eslint-disable-next-line deprecation/deprecation\n Settings,\n // eslint-disable-next-line deprecation/deprecation\n SettingsFunction,\n StyleFunction,\n} from '@fluentui/react/lib/Utilities';\n"]}
1
+ {"version":3,"file":"Utilities.js","sourceRoot":"../src/","sources":["Utilities.ts"],"names":[],"mappings":";;;;IACE,kGAAA,KAAK,OAAA;IACL,uGAAA,UAAU,OAAA;IACV,0GAAA,aAAa,OAAA;IACb,2GAAA,cAAc,OAAA;IACd,uGAAA,UAAU,OAAA;IACV,8GAAA,iBAAiB,OAAA;IACjB,yHAAA,4BAA4B,OAAA;IAC5B,kHAAA,qBAAqB,OAAA;IACrB,0GAAA,aAAa,OAAA;IACb,uGAAA,UAAU,OAAA;IACV,8GAAA,iBAAiB,OAAA;IACjB,uGAAA,UAAU,OAAA;IACV,2GAAA,cAAc,OAAA;IACd,oHAAA,uBAAuB,OAAA;IACvB,qGAAA,QAAQ,OAAA;IACR,sGAAA,SAAS,OAAA;IACT,6GAAA,gBAAgB,OAAA;IAChB,sGAAA,SAAS,OAAA;IACT,+GAAA,kBAAkB,OAAA;IAClB,0GAAA,aAAa,OAAA;IACb,kHAAA,qBAAqB,OAAA;IACrB,8GAAA,iBAAiB,OAAA;IACjB,qHAAA,wBAAwB,OAAA;IACxB,iHAAA,oBAAoB,OAAA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qBAAqB,OAAA","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 _stackedData;
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 _getStackedData;
74
+ private _getDataPoints;
75
75
  private _createDataSet;
76
76
  private _getCustomizedCallout;
77
77
  private _getGraphData;
@@ -155,25 +155,47 @@ define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-
155
155
  });
156
156
  };
157
157
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
158
- _this._getStackedData = function (keys, dataSet) {
159
- var stackedValues = (0, d3_shape_1.stack)().keys(keys)(dataSet);
160
- var maxOfYVal = (0, d3_array_1.max)(stackedValues[stackedValues.length - 1], function (dp) { return dp[1]; });
161
- var stackedData = [];
162
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
163
- stackedValues.forEach(function (layer) {
164
- var currentStack = [];
158
+ _this._getDataPoints = function (keys, dataSet) {
159
+ var _a;
160
+ var renderPoints = [];
161
+ var maxOfYVal = 0;
162
+ if (_this.props.mode === 'tozeroy') {
163
+ keys.forEach(function (key, index) {
164
+ var currentLayer = [];
165
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
166
+ dataSet.forEach(function (d) {
167
+ currentLayer.push({
168
+ values: [0, d[key]], // Start from zero for "tozeroy" mode
169
+ xVal: d.xVal,
170
+ });
171
+ if (d[key] > maxOfYVal) {
172
+ maxOfYVal = d[key];
173
+ }
174
+ });
175
+ renderPoints.push(currentLayer);
176
+ });
177
+ }
178
+ else {
179
+ var dataValues = (0, d3_shape_1.stack)().keys(keys)(dataSet);
180
+ maxOfYVal = (0, d3_array_1.max)(dataValues[dataValues.length - 1], function (dp) { return dp[1]; });
165
181
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
166
- layer.forEach(function (d) {
167
- currentStack.push({
168
- values: d,
169
- xVal: d.data.xVal,
182
+ dataValues.forEach(function (layer) {
183
+ var currentLayer = [];
184
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
185
+ layer.forEach(function (d) {
186
+ currentLayer.push({
187
+ values: d,
188
+ xVal: d.data.xVal,
189
+ });
170
190
  });
191
+ renderPoints.push(currentLayer);
171
192
  });
172
- stackedData.push(currentStack);
173
- });
174
- _this._isMultiStackChart = stackedData && stackedData.length > 1 ? true : false;
193
+ }
194
+ _this._isMultiStackChart = !!(((_a = _this.props.legendProps) === null || _a === void 0 ? void 0 : _a.selectedLegends)
195
+ ? (renderPoints === null || renderPoints === void 0 ? void 0 : renderPoints.length) >= 1
196
+ : (renderPoints === null || renderPoints === void 0 ? void 0 : renderPoints.length) > 1);
175
197
  return {
176
- stackedData: stackedData,
198
+ renderData: renderPoints,
177
199
  maxOfYVal: maxOfYVal,
178
200
  };
179
201
  };
@@ -212,20 +234,20 @@ define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-
212
234
  });
213
235
  dataSet_1.push(singleDataset);
214
236
  });
215
- // get keys from dataset, used to create stacked data
237
+ // get keys from dataset, used to render data
216
238
  var keysLength = dataSet_1 && Object.keys(dataSet_1[0]).length;
217
239
  var keys = [];
218
240
  for (var i = 0; i < keysLength - 1; i++) {
219
241
  var keyVal = "chart".concat(i);
220
242
  keys.push(keyVal);
221
243
  }
222
- // Stacked Info used to draw graph
223
- var stackedInfo = _this._getStackedData(keys, dataSet_1);
244
+ // Data used to draw graph
245
+ var data = _this._getDataPoints(keys, dataSet_1);
224
246
  return {
225
247
  colors: colors_1,
226
248
  opacity: opacity_1,
227
249
  keys: keys,
228
- stackedInfo: stackedInfo,
250
+ data: data,
229
251
  calloutPoints: calloutPoints,
230
252
  };
231
253
  }
@@ -267,13 +289,13 @@ define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-
267
289
  var keyVal = "chart".concat(i);
268
290
  keys.push(keyVal);
269
291
  }
270
- // Stacked Info used to draw graph
271
- var stackedInfo = _this._getStackedData(keys, dataSet);
292
+ // Data used to draw graph
293
+ var data = _this._getDataPoints(keys, dataSet);
272
294
  return {
273
295
  colors: colors_2,
274
296
  opacity: opacity_2,
275
297
  keys: keys,
276
- stackedInfo: stackedInfo,
298
+ data: data,
277
299
  calloutPoints: calloutPoints,
278
300
  };
279
301
  }
@@ -377,15 +399,16 @@ define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-
377
399
  var graph = [];
378
400
  var lineColor;
379
401
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
380
- _this._stackedData.forEach(function (singleStackedData, index) {
402
+ _this._data.forEach(function (singleStackedData, index) {
381
403
  var _a, _b, _c, _d, _e;
404
+ var layerOpacity = _this.props.mode === 'tozeroy' ? 0.8 : _this._opacity[index];
382
405
  graph.push(React.createElement(React.Fragment, { key: "".concat(index, "-graph-").concat(_this._uniqueIdForGraph) },
383
406
  _this.props.enableGradient && (React.createElement("defs", null,
384
407
  React.createElement("linearGradient", { id: "gradient_".concat(index), x1: "0%", x2: "0%", y1: "0%", y2: "100%" },
385
408
  React.createElement("stop", { offset: "0", stopColor: _this._colors[index] }),
386
409
  React.createElement("stop", { offset: "100%", stopColor: "transparent" })))),
387
410
  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 }),
388
- 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: _this._opacity[index], fillOpacity: _this._getOpacity(points[index].legend), onMouseMove: _this._onRectMouseMove, onMouseOut: _this._onRectMouseOut, onMouseOver: _this._onRectMouseMove })) : (React.createElement("path", tslib_1.__assign({ id: "".concat(index, "-graph-").concat(_this._uniqueIdForGraph), d: area(singleStackedData), fill: _this.props.enableGradient ? "url(#gradient_".concat(index, ")") : _this._colors[index], opacity: _this._opacity[index], fillOpacity: _this._getOpacity(points[index].legend), onMouseMove: _this._onRectMouseMove, onMouseOut: _this._onRectMouseOut, onMouseOver: _this._onRectMouseMove }, (_this.props.optimizeLargeData && {
411
+ 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", tslib_1.__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 && {
389
412
  'data-is-focusable': _this._legendHighlighted(points[index].legend) || _this._noLegendHighlighted(),
390
413
  role: 'img',
391
414
  'aria-label': "".concat(points[index].legend, ", series ").concat(index + 1, " of ").concat(points.length, " with ").concat(points[index].data.length, " data points."),
@@ -393,14 +416,14 @@ define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-
393
416
  });
394
417
  var circleRadius = pointOptions && pointOptions.r ? Number(pointOptions.r) : 8;
395
418
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
396
- _this._stackedData.forEach(function (singleStackedData, index) {
419
+ _this._data.forEach(function (singleStackedData, index) {
397
420
  if (points.length === index) {
398
421
  return;
399
422
  }
400
423
  if (!_this.props.optimizeLargeData || singleStackedData.length === 1) {
401
424
  // Render circles for all data points
402
425
  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) {
403
- var circleId = "".concat(_this._circleId, "_").concat(index * _this._stackedData[0].length + pointIndex);
426
+ var circleId = "".concat(_this._circleId, "_").concat(index * _this._data[0].length + pointIndex);
404
427
  var xDataPoint = singlePoint.xVal instanceof Date ? singlePoint.xVal.getTime() : singlePoint.xVal;
405
428
  lineColor = points[index].color;
406
429
  var legend = points[index].legend;
@@ -412,7 +435,7 @@ define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-
412
435
  singleStackedData.forEach(function (singlePoint, pointIndex) {
413
436
  var xDataPoint = singlePoint.xVal instanceof Date ? singlePoint.xVal.getTime() : singlePoint.xVal;
414
437
  if (_this.state.nearestCircleToHighlight === xDataPoint) {
415
- var circleId = "".concat(_this._circleId, "_").concat(index * _this._stackedData[0].length + pointIndex);
438
+ var circleId = "".concat(_this._circleId, "_").concat(index * _this._data[0].length + pointIndex);
416
439
  lineColor = points[index].color;
417
440
  var legend = points[index].legend;
418
441
  graph.push(React.createElement("circle", tslib_1.__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) }, (0, index_2.getSecureProps)(pointOptions), { r: _this._getCircleRadius(xDataPoint, circleRadius, circleId, legend) })));
@@ -591,19 +614,19 @@ define(["require", "exports", "tslib", "react", "d3-array", "d3-selection", "d3-
591
614
  if (!this._isChartEmpty()) {
592
615
  var lineChartData = this.props.data.lineChartData;
593
616
  var points = this._addDefaultColors(lineChartData);
594
- var _a = this._createSet(points), colors = _a.colors, opacity = _a.opacity, stackedInfo = _a.stackedInfo, calloutPoints = _a.calloutPoints;
617
+ var _a = this._createSet(points), colors = _a.colors, opacity = _a.opacity, data = _a.data, calloutPoints = _a.calloutPoints;
595
618
  this._calloutPoints = calloutPoints;
596
619
  var isXAxisDateType = (0, index_2.getXAxisType)(points);
597
620
  this._colors = colors;
598
621
  this._opacity = opacity;
599
- this._stackedData = stackedInfo.stackedData;
622
+ this._data = data.renderData;
600
623
  var legends = this._getLegendData(points);
601
624
  var tickParams = {
602
625
  tickValues: this.props.tickValues,
603
626
  tickFormat: this.props.tickFormat,
604
627
  };
605
628
  var calloutProps = tslib_1.__assign({ target: this.state.refSelected, isCalloutVisible: this.state.isCalloutVisible, directionalHint: Callout_1.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);
606
- return (React.createElement(index_1.CartesianChart, tslib_1.__assign({}, this.props, { chartTitle: this._getChartTitle(), points: points, chartType: index_2.ChartTypes.AreaChart, calloutProps: calloutProps, legendBars: legends, createYAxis: index_2.createNumericYAxis, isCalloutForStack: true, xAxisType: isXAxisDateType ? index_2.XAxisTypes.DateAxis : index_2.XAxisTypes.NumericAxis, tickParams: tickParams, maxOfYVal: stackedInfo.maxOfYVal, getGraphData: this._getGraphData, getDomainNRangeValues: this._getDomainNRangeValues, createStringYAxis: index_2.createStringYAxis, getmargins: this._getMargins, getMinMaxOfYAxis: index_2.findNumericMinMaxOfY, customizedCallout: this._getCustomizedCallout(), onChartMouseLeave: this._handleChartMouseLeave, enableFirstRenderOptimization: this.props.enablePerfOptimization && this._firstRenderOptimization, ref: this._cartesianChartRef,
629
+ return (React.createElement(index_1.CartesianChart, tslib_1.__assign({}, this.props, { chartTitle: this._getChartTitle(), points: points, chartType: index_2.ChartTypes.AreaChart, calloutProps: calloutProps, legendBars: legends, createYAxis: index_2.createNumericYAxis, isCalloutForStack: true, xAxisType: isXAxisDateType ? index_2.XAxisTypes.DateAxis : index_2.XAxisTypes.NumericAxis, tickParams: tickParams, maxOfYVal: data.maxOfYVal, getGraphData: this._getGraphData, getDomainNRangeValues: this._getDomainNRangeValues, createStringYAxis: index_2.createStringYAxis, getmargins: this._getMargins, getMinMaxOfYAxis: index_2.findNumericMinMaxOfY, customizedCallout: this._getCustomizedCallout(), onChartMouseLeave: this._handleChartMouseLeave, enableFirstRenderOptimization: this.props.enablePerfOptimization && this._firstRenderOptimization, ref: this._cartesianChartRef,
607
630
  /* eslint-disable react/jsx-no-bind */
608
631
  // eslint-disable-next-line react/no-children-prop
609
632
  children: function (props) {