@fluentui/react-charts 0.0.0-nightly-20260109-0406.1 → 0.0.0-nightly-20260113-0406.1

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 (173) hide show
  1. package/CHANGELOG.md +13 -13
  2. package/dist/index.d.ts +361 -0
  3. package/lib/PolarChart.js +1 -0
  4. package/lib/PolarChart.js.map +1 -0
  5. package/lib/components/AnnotationOnlyChart/AnnotationOnlyChart.js +2 -1
  6. package/lib/components/AnnotationOnlyChart/AnnotationOnlyChart.js.map +1 -1
  7. package/lib/components/ChartTable/ChartTable.js +21 -7
  8. package/lib/components/ChartTable/ChartTable.js.map +1 -1
  9. package/lib/components/ChartTable/ChartTable.types.js.map +1 -1
  10. package/lib/components/ChartTable/useChartTableStyles.styles.js +24 -3
  11. package/lib/components/ChartTable/useChartTableStyles.styles.js.map +1 -1
  12. package/lib/components/ChartTable/useChartTableStyles.styles.raw.js +14 -2
  13. package/lib/components/ChartTable/useChartTableStyles.styles.raw.js.map +1 -1
  14. package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.js +7 -5
  15. package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.js.map +1 -1
  16. package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.types.js.map +1 -1
  17. package/lib/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.js +47 -3
  18. package/lib/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.js.map +1 -1
  19. package/lib/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.raw.js +24 -17
  20. package/lib/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.raw.js.map +1 -1
  21. package/lib/components/CommonComponents/CartesianChart.js +5 -3
  22. package/lib/components/CommonComponents/CartesianChart.js.map +1 -1
  23. package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
  24. package/lib/components/DeclarativeChart/DeclarativeChart.js +33 -29
  25. package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  26. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +250 -153
  27. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  28. package/lib/components/DonutChart/DonutChart.js +12 -4
  29. package/lib/components/DonutChart/DonutChart.js.map +1 -1
  30. package/lib/components/DonutChart/DonutChart.types.js.map +1 -1
  31. package/lib/components/DonutChart/useDonutChartStyles.styles.js +25 -5
  32. package/lib/components/DonutChart/useDonutChartStyles.styles.js.map +1 -1
  33. package/lib/components/DonutChart/useDonutChartStyles.styles.raw.js +16 -5
  34. package/lib/components/DonutChart/useDonutChartStyles.styles.raw.js.map +1 -1
  35. package/lib/components/FunnelChart/FunnelChart.js +27 -5
  36. package/lib/components/FunnelChart/FunnelChart.js.map +1 -1
  37. package/lib/components/FunnelChart/FunnelChart.types.js.map +1 -1
  38. package/lib/components/FunnelChart/useFunnelChartStyles.styles.js +26 -4
  39. package/lib/components/FunnelChart/useFunnelChartStyles.styles.js.map +1 -1
  40. package/lib/components/FunnelChart/useFunnelChartStyles.styles.raw.js +15 -3
  41. package/lib/components/FunnelChart/useFunnelChartStyles.styles.raw.js.map +1 -1
  42. package/lib/components/GaugeChart/GaugeChart.js +5 -5
  43. package/lib/components/GaugeChart/GaugeChart.js.map +1 -1
  44. package/lib/components/GaugeChart/GaugeChart.types.js.map +1 -1
  45. package/lib/components/GaugeChart/useGaugeChartStyles.styles.js +8 -5
  46. package/lib/components/GaugeChart/useGaugeChartStyles.styles.js.map +1 -1
  47. package/lib/components/GaugeChart/useGaugeChartStyles.styles.raw.js +2 -5
  48. package/lib/components/GaugeChart/useGaugeChartStyles.styles.raw.js.map +1 -1
  49. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +2 -1
  50. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
  51. package/lib/components/LineChart/LineChart.js +4 -1
  52. package/lib/components/LineChart/LineChart.js.map +1 -1
  53. package/lib/components/PolarChart/PolarChart.js +576 -0
  54. package/lib/components/PolarChart/PolarChart.js.map +1 -0
  55. package/lib/components/PolarChart/PolarChart.types.js +1 -0
  56. package/lib/components/PolarChart/PolarChart.types.js.map +1 -0
  57. package/lib/components/PolarChart/PolarChart.utils.js +174 -0
  58. package/lib/components/PolarChart/PolarChart.utils.js.map +1 -0
  59. package/lib/components/PolarChart/index.js +2 -0
  60. package/lib/components/PolarChart/index.js.map +1 -0
  61. package/lib/components/PolarChart/usePolarChartStyles.styles.js +72 -0
  62. package/lib/components/PolarChart/usePolarChartStyles.styles.js.map +1 -0
  63. package/lib/components/PolarChart/usePolarChartStyles.styles.raw.js +61 -0
  64. package/lib/components/PolarChart/usePolarChartStyles.styles.raw.js.map +1 -0
  65. package/lib/components/SankeyChart/SankeyChart.js +13 -3
  66. package/lib/components/SankeyChart/SankeyChart.js.map +1 -1
  67. package/lib/components/SankeyChart/SankeyChart.types.js.map +1 -1
  68. package/lib/components/SankeyChart/useSankeyChartStyles.styles.js +23 -6
  69. package/lib/components/SankeyChart/useSankeyChartStyles.styles.js.map +1 -1
  70. package/lib/components/SankeyChart/useSankeyChartStyles.styles.raw.js +15 -5
  71. package/lib/components/SankeyChart/useSankeyChartStyles.styles.raw.js.map +1 -1
  72. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js +25 -36
  73. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
  74. package/lib/index.js +1 -0
  75. package/lib/index.js.map +1 -1
  76. package/lib/types/DataPoint.js +1 -1
  77. package/lib/types/DataPoint.js.map +1 -1
  78. package/lib/utilities/ChartTitle.js +33 -0
  79. package/lib/utilities/ChartTitle.js.map +1 -0
  80. package/lib/utilities/Common.styles.js +73 -1
  81. package/lib/utilities/Common.styles.js.map +1 -1
  82. package/lib/utilities/Common.styles.raw.js +70 -0
  83. package/lib/utilities/Common.styles.raw.js.map +1 -1
  84. package/lib/utilities/index.js +1 -0
  85. package/lib/utilities/index.js.map +1 -1
  86. package/lib/utilities/utilities.js +2 -2
  87. package/lib/utilities/utilities.js.map +1 -1
  88. package/lib-commonjs/PolarChart.js +6 -0
  89. package/lib-commonjs/PolarChart.js.map +1 -0
  90. package/lib-commonjs/components/AnnotationOnlyChart/AnnotationOnlyChart.js +2 -1
  91. package/lib-commonjs/components/AnnotationOnlyChart/AnnotationOnlyChart.js.map +1 -1
  92. package/lib-commonjs/components/ChartTable/ChartTable.js +21 -7
  93. package/lib-commonjs/components/ChartTable/ChartTable.js.map +1 -1
  94. package/lib-commonjs/components/ChartTable/ChartTable.types.js.map +1 -1
  95. package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.js +34 -3
  96. package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.js.map +1 -1
  97. package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.raw.js +14 -2
  98. package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.raw.js.map +1 -1
  99. package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.js +7 -5
  100. package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.js.map +1 -1
  101. package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.types.js.map +1 -1
  102. package/lib-commonjs/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.js +58 -4
  103. package/lib-commonjs/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.js.map +1 -1
  104. package/lib-commonjs/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.raw.js +24 -17
  105. package/lib-commonjs/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.raw.js.map +1 -1
  106. package/lib-commonjs/components/CommonComponents/CartesianChart.js +4 -2
  107. package/lib-commonjs/components/CommonComponents/CartesianChart.js.map +1 -1
  108. package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -1
  109. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +59 -56
  110. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  111. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +256 -156
  112. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  113. package/lib-commonjs/components/DonutChart/DonutChart.js +11 -3
  114. package/lib-commonjs/components/DonutChart/DonutChart.js.map +1 -1
  115. package/lib-commonjs/components/DonutChart/DonutChart.types.js.map +1 -1
  116. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.js +31 -4
  117. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.js.map +1 -1
  118. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.raw.js +15 -4
  119. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.raw.js.map +1 -1
  120. package/lib-commonjs/components/FunnelChart/FunnelChart.js +26 -4
  121. package/lib-commonjs/components/FunnelChart/FunnelChart.js.map +1 -1
  122. package/lib-commonjs/components/FunnelChart/FunnelChart.types.js.map +1 -1
  123. package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.js +36 -4
  124. package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.js.map +1 -1
  125. package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.raw.js +15 -3
  126. package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.raw.js.map +1 -1
  127. package/lib-commonjs/components/GaugeChart/GaugeChart.js +4 -4
  128. package/lib-commonjs/components/GaugeChart/GaugeChart.js.map +1 -1
  129. package/lib-commonjs/components/GaugeChart/GaugeChart.types.js.map +1 -1
  130. package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.js +10 -4
  131. package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.js.map +1 -1
  132. package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.raw.js +2 -5
  133. package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.raw.js.map +1 -1
  134. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +2 -1
  135. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
  136. package/lib-commonjs/components/LineChart/LineChart.js +4 -1
  137. package/lib-commonjs/components/LineChart/LineChart.js.map +1 -1
  138. package/lib-commonjs/components/PolarChart/PolarChart.js +586 -0
  139. package/lib-commonjs/components/PolarChart/PolarChart.js.map +1 -0
  140. package/lib-commonjs/components/PolarChart/PolarChart.types.js +6 -0
  141. package/lib-commonjs/components/PolarChart/PolarChart.types.js.map +1 -0
  142. package/lib-commonjs/components/PolarChart/PolarChart.utils.js +204 -0
  143. package/lib-commonjs/components/PolarChart/PolarChart.utils.js.map +1 -0
  144. package/lib-commonjs/components/PolarChart/index.js +7 -0
  145. package/lib-commonjs/components/PolarChart/index.js.map +1 -0
  146. package/lib-commonjs/components/PolarChart/usePolarChartStyles.styles.js +107 -0
  147. package/lib-commonjs/components/PolarChart/usePolarChartStyles.styles.js.map +1 -0
  148. package/lib-commonjs/components/PolarChart/usePolarChartStyles.styles.raw.js +75 -0
  149. package/lib-commonjs/components/PolarChart/usePolarChartStyles.styles.raw.js.map +1 -0
  150. package/lib-commonjs/components/SankeyChart/SankeyChart.js +13 -3
  151. package/lib-commonjs/components/SankeyChart/SankeyChart.js.map +1 -1
  152. package/lib-commonjs/components/SankeyChart/SankeyChart.types.js.map +1 -1
  153. package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.js +28 -4
  154. package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.js.map +1 -1
  155. package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.raw.js +14 -3
  156. package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.raw.js.map +1 -1
  157. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js +25 -36
  158. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
  159. package/lib-commonjs/index.js +1 -0
  160. package/lib-commonjs/index.js.map +1 -1
  161. package/lib-commonjs/types/DataPoint.js +1 -1
  162. package/lib-commonjs/types/DataPoint.js.map +1 -1
  163. package/lib-commonjs/utilities/ChartTitle.js +41 -0
  164. package/lib-commonjs/utilities/ChartTitle.js.map +1 -0
  165. package/lib-commonjs/utilities/Common.styles.js +69 -0
  166. package/lib-commonjs/utilities/Common.styles.js.map +1 -1
  167. package/lib-commonjs/utilities/Common.styles.raw.js +69 -0
  168. package/lib-commonjs/utilities/Common.styles.raw.js.map +1 -1
  169. package/lib-commonjs/utilities/index.js +1 -0
  170. package/lib-commonjs/utilities/index.js.map +1 -1
  171. package/lib-commonjs/utilities/utilities.js +6 -0
  172. package/lib-commonjs/utilities/utilities.js.map +1 -1
  173. package/package.json +10 -10
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/SankeyChart/useSankeyChartStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { GriffelStyle, makeStyles, mergeClasses } from '@griffel/react';\nimport type { SankeyChartProps, SankeyChartStyles } from './SankeyChart.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { tokens, typographyStyles } from '@fluentui/react-theme';\nimport { HighContrastSelector } from '../../utilities/index';\nimport { getTooltipStyle } from '../../utilities/index';\n\nexport const sankeyChartClassNames: SlotClassNames<SankeyChartStyles> = {\n root: 'fui-sc__root',\n nodes: 'fui-sc__nodes',\n links: 'fui-sc__links',\n nodeTextContainer: 'fui-sc__nodeTextContainer',\n toolTip: 'fui-sc__toolTip',\n chartWrapper: 'fui-sc__chartWrapper',\n chart: 'fui-sc__chart',\n};\nconst useStyles = makeStyles({\n root: {\n ...typographyStyles.body1,\n display: 'flex',\n width: '100%',\n height: '100%',\n flexDirection: 'column',\n overflow: 'hidden',\n textAlign: 'left',\n },\n links: {\n fill: tokens.colorNeutralBackground1,\n strokeWidth: '3px',\n [HighContrastSelector]: {\n fill: 'Canvas',\n },\n },\n nodes: {\n fill: '#F5F5F5',\n [HighContrastSelector]: {\n fill: 'Canvas',\n },\n },\n toolTip: getTooltipStyle() as GriffelStyle,\n nodeTextContainer: {\n '& text': {\n [HighContrastSelector]: {\n fill: 'CanvasText',\n },\n },\n\n marginTop: '4px',\n marginLeft: '8px',\n marginBottom: '4px',\n marginRight: '8px',\n },\n chartWrapper: {\n overflow: 'auto',\n },\n chart: {\n display: 'block',\n },\n});\n\nexport const useSankeyChartStyles = (props: SankeyChartProps): SankeyChartStyles => {\n const baseStyles = useStyles();\n\n return {\n root: mergeClasses(sankeyChartClassNames.root, baseStyles.root, props.styles?.root),\n nodes: mergeClasses(sankeyChartClassNames.nodes, baseStyles.nodes /*, props.styles?.nodes*/),\n links: mergeClasses(sankeyChartClassNames.links, baseStyles.links /*, props.styles?.links*/),\n nodeTextContainer: mergeClasses(\n sankeyChartClassNames.nodeTextContainer,\n baseStyles.nodeTextContainer /*, props.styles?.nodeTextContainer*/,\n ),\n toolTip: mergeClasses(sankeyChartClassNames.toolTip, baseStyles.toolTip /*, props.styles?.toolTip*/),\n chartWrapper: mergeClasses(\n sankeyChartClassNames.chartWrapper,\n props.reflowProps?.mode === 'min-width' ? baseStyles.chartWrapper : '',\n props.styles?.chartWrapper,\n ),\n chart: mergeClasses(sankeyChartClassNames.chart, baseStyles.chart, props.styles?.chart),\n };\n};\n"],"names":["makeStyles","mergeClasses","tokens","typographyStyles","HighContrastSelector","getTooltipStyle","sankeyChartClassNames","root","nodes","links","nodeTextContainer","toolTip","chartWrapper","chart","useStyles","body1","display","width","height","flexDirection","overflow","textAlign","fill","colorNeutralBackground1","strokeWidth","marginTop","marginLeft","marginBottom","marginRight","useSankeyChartStyles","props","baseStyles","styles","reflowProps","mode"],"mappings":"AAAA;AAEA,SAAuBA,UAAU,EAAEC,YAAY,QAAQ,iBAAiB;AAGxE,SAASC,MAAM,EAAEC,gBAAgB,QAAQ,wBAAwB;AACjE,SAASC,oBAAoB,QAAQ,wBAAwB;AAC7D,SAASC,eAAe,QAAQ,wBAAwB;AAExD,OAAO,MAAMC,wBAA2D;IACtEC,MAAM;IACNC,OAAO;IACPC,OAAO;IACPC,mBAAmB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cH,WAAWnB,YAAY,GAAG,KACpEkB,iBAAAA,MAAME,MAAM,cAAZF,qCAAAA,eAAclB,YAAY;QAE5BC,OAAOZ,aAAaK,sBAAsBO,KAAK,EAAEkB,WAAWlB,KAAK,GAAEiB,iBAAAA,MAAME,MAAM,cAAZF,qCAAAA,eAAcjB,KAAK;IACxF;AACF,EAAE"}
1
+ {"version":3,"sources":["../src/components/SankeyChart/useSankeyChartStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { GriffelStyle, makeStyles, mergeClasses } from '@griffel/react';\nimport type { SankeyChartProps, SankeyChartStyles } from './SankeyChart.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { tokens, typographyStyles } from '@fluentui/react-theme';\nimport { HighContrastSelector, getTooltipStyle, getChartTitleStyles } from '../../utilities/index';\n\nexport const sankeyChartClassNames: SlotClassNames<SankeyChartStyles> = {\n root: 'fui-sc__root',\n nodes: 'fui-sc__nodes',\n links: 'fui-sc__links',\n nodeTextContainer: 'fui-sc__nodeTextContainer',\n toolTip: 'fui-sc__toolTip',\n chartWrapper: 'fui-sc__chartWrapper',\n chart: 'fui-sc__chart',\n chartTitle: 'fui-sc__chartTitle',\n svgTooltip: 'fui-sc__svgTooltip',\n};\nconst useStyles = makeStyles({\n root: {\n ...typographyStyles.body1,\n display: 'flex',\n width: '100%',\n height: '100%',\n flexDirection: 'column',\n overflow: 'hidden',\n textAlign: 'left',\n },\n links: {\n fill: tokens.colorNeutralBackground1,\n strokeWidth: '3px',\n [HighContrastSelector]: {\n fill: 'Canvas',\n },\n },\n nodes: {\n fill: '#F5F5F5',\n [HighContrastSelector]: {\n fill: 'Canvas',\n },\n },\n toolTip: getTooltipStyle() as GriffelStyle,\n nodeTextContainer: {\n '& text': {\n [HighContrastSelector]: {\n fill: 'CanvasText',\n },\n },\n\n marginTop: '4px',\n marginLeft: '8px',\n marginBottom: '4px',\n marginRight: '8px',\n },\n chartWrapper: {\n overflow: 'auto',\n },\n chart: {\n display: 'block',\n },\n chartTitle: getChartTitleStyles() as GriffelStyle,\n svgTooltip: {\n fill: tokens.colorNeutralBackground1,\n [HighContrastSelector]: {\n fill: 'Canvas',\n },\n },\n});\n\nexport const useSankeyChartStyles = (props: SankeyChartProps): SankeyChartStyles => {\n const baseStyles = useStyles();\n\n return {\n root: mergeClasses(sankeyChartClassNames.root, baseStyles.root, props.styles?.root),\n nodes: mergeClasses(sankeyChartClassNames.nodes, baseStyles.nodes /*, props.styles?.nodes*/),\n links: mergeClasses(sankeyChartClassNames.links, baseStyles.links /*, props.styles?.links*/),\n nodeTextContainer: mergeClasses(\n sankeyChartClassNames.nodeTextContainer,\n baseStyles.nodeTextContainer /*, props.styles?.nodeTextContainer*/,\n ),\n toolTip: mergeClasses(sankeyChartClassNames.toolTip, baseStyles.toolTip /*, props.styles?.toolTip*/),\n chartWrapper: mergeClasses(\n sankeyChartClassNames.chartWrapper,\n props.reflowProps?.mode === 'min-width' ? baseStyles.chartWrapper : '',\n props.styles?.chartWrapper,\n ),\n chart: mergeClasses(sankeyChartClassNames.chart, baseStyles.chart, props.styles?.chart),\n chartTitle: mergeClasses(sankeyChartClassNames.chartTitle, baseStyles.chartTitle, props.styles?.chartTitle),\n svgTooltip: mergeClasses(sankeyChartClassNames.svgTooltip, baseStyles.svgTooltip, props.styles?.svgTooltip),\n };\n};\n"],"names":["makeStyles","mergeClasses","tokens","typographyStyles","HighContrastSelector","getTooltipStyle","getChartTitleStyles","sankeyChartClassNames","root","nodes","links","nodeTextContainer","toolTip","chartWrapper","chart","chartTitle","svgTooltip","useStyles","body1","display","width","height","flexDirection","overflow","textAlign","fill","colorNeutralBackground1","strokeWidth","marginTop","marginLeft","marginBottom","marginRight","useSankeyChartStyles","props","baseStyles","styles","reflowProps","mode"],"mappings":"AAAA;AAEA,SAAuBA,UAAU,EAAEC,YAAY,QAAQ,iBAAiB;AAGxE,SAASC,MAAM,EAAEC,gBAAgB,QAAQ,wBAAwB;AACjE,SAASC,oBAAoB,EAAEC,eA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BAAmBV,aACjBM,sBAAsBI,iBAAiB,EACvCuB,WAAWvB,iBAAiB,CAAC,mCAAmC;QAElEC,SAASX,aAAaM,sBAAsBK,OAAO,EAAEsB,WAAWtB,OAAO,CAAC,yBAAyB;QACjGC,cAAcZ,aACZM,sBAAsBM,YAAY,EAClCoB,EAAAA,qBAAAA,MAAMG,WAAW,cAAjBH,yCAAAA,mBAAmBI,IAAI,MAAK,cAAcH,WAAWrB,YAAY,GAAG,KACpEoB,iBAAAA,MAAME,MAAM,cAAZF,qCAAAA,eAAcpB,YAAY;QAE5BC,OAAOb,aAAaM,sBAAsBO,KAAK,EAAEoB,WAAWpB,KAAK,GAAEmB,iBAAAA,MAAME,MAAM,cAAZF,qCAAAA,eAAcnB,KAAK;QACtFC,YAAYd,aAAaM,sBAAsBQ,UAAU,EAAEmB,WAAWnB,UAAU,GAAEkB,iBAAAA,MAAME,MAAM,cAAZF,qCAAAA,eAAclB,UAAU;QAC1GC,YAAYf,aAAaM,sBAAsBS,UAAU,EAAEkB,WAAWlB,UAAU,GAAEiB,iBAAAA,MAAME,MAAM,cAAZF,qCAAAA,eAAcjB,UAAU;IAC5G;AACF,EAAE"}
@@ -5,6 +5,7 @@ import { useVerticalStackedBarChartStyles } from './useVerticalStackedBarChartSt
5
5
  import { scaleLinear as d3ScaleLinear, scaleBand as d3ScaleBand, scaleUtc as d3ScaleUtc, scaleTime as d3ScaleTime } from 'd3-scale';
6
6
  import { useId } from '@fluentui/react-utilities';
7
7
  import { tokens } from '@fluentui/react-theme';
8
+ import { useArrowNavigationGroup } from '@fluentui/react-tabster';
8
9
  import { CartesianChart, ChartPopover, Legends } from '../../index';
9
10
  import { ChartTypes, getAccessibleDataObject, XAxisTypes, getTypeOfAxis, formatScientificLimitWidth, getBarWidth, getScalePadding, isScalePaddingDefined, calculateAppropriateBarWidth, areArraysEqual, calculateLongestLabelWidth, useRtl, DataVizPalette, getColorFromToken, findVSBCNumericMinMaxOfY, YAxisType, createNumericYAxis, domainRangeOfDateForAreaLineScatterVerticalBarCharts, domainRangeOfVSBCNumeric, domainRangeOfXStringAxis, createStringYAxis, calcTotalWidth, calcBandwidth, calcRequiredWidth, sortAxisCategories } from '../../utilities/index';
10
11
  import { formatDateToLocaleString, isInvalidValue } from '@fluentui/chart-utilities';
@@ -23,6 +24,10 @@ export const VerticalStackedBarChart = /*#__PURE__*/ React.forwardRef((_props, f
23
24
  const _isRtl = useRtl();
24
25
  const _createLegendsForLine = (data)=>_getLineLegends(data);
25
26
  const _emptyChartId = useId('_VSBC_empty');
27
+ const _arrowNavigationAttributes = useArrowNavigationGroup({
28
+ axis: 'vertical',
29
+ circular: true
30
+ });
26
31
  let _points = [];
27
32
  let _dataset;
28
33
  let _xAxisLabels = [];
@@ -152,17 +157,14 @@ export const VerticalStackedBarChart = /*#__PURE__*/ React.forwardRef((_props, f
152
157
  clientX = boundingRect.left + boundingRect.width / 2;
153
158
  clientY = boundingRect.top + boundingRect.height / 2;
154
159
  }
155
- if (_getHighlightedLegend().length === 1) {
156
- if (_noLegendHighlighted() || _isLegendHighlighted(lineData.legend)) {
157
- _updatePosition(clientX, clientY);
158
- setPopoverOpen(true);
159
- setXCalloutValue(`${lineData.xItem.xAxisPoint}`);
160
- setYCalloutValue(`${lineData.yAxisCalloutData || lineData.data || lineData.y}`);
161
- setActiveXAxisDataPoint(lineData.xItem.xAxisPoint);
162
- setColor(lineData.color);
163
- }
164
- } else {
165
- _onStackHoverFocus(lineData.xItem, event);
160
+ if (_noLegendHighlighted() || _isLegendHighlighted(lineData.legend)) {
161
+ _updatePosition(clientX, clientY);
162
+ setPopoverOpen(true);
163
+ setXCalloutValue(`${lineData.xItem.xAxisPoint}`);
164
+ setYCalloutValue(`${lineData.yAxisCalloutData || lineData.data || lineData.y}`);
165
+ setCalloutLegend(lineData.legend);
166
+ setActiveXAxisDataPoint(lineData.xItem.xAxisPoint);
167
+ setColor(lineData.color);
166
168
  }
167
169
  }
168
170
  function _onStackHoverFocus(stack, event) {
@@ -326,19 +328,9 @@ export const VerticalStackedBarChart = /*#__PURE__*/ React.forwardRef((_props, f
326
328
  const _isHavingLines = props.data.some((item)=>item.lineData && item.lineData.length > 0);
327
329
  return props.onRenderCalloutPerStack ? props.onRenderCalloutPerStack(stackCalloutProps) : props.onRenderCalloutPerDataPoint && !_isHavingLines ? props.onRenderCalloutPerDataPoint(dataPointCalloutProps, _renderCallout) : null;
328
330
  }
329
- function _toFocusWholeStack(_isHavingLines) {
331
+ function _toFocusWholeStack() {
330
332
  const { isCalloutForStack = false } = props;
331
- let shouldFocusStackOnly = false;
332
- if (_isHavingLines) {
333
- if (_getHighlightedLegend().length === 1) {
334
- shouldFocusStackOnly = false;
335
- } else {
336
- shouldFocusStackOnly = true;
337
- }
338
- } else {
339
- shouldFocusStackOnly = isCalloutForStack;
340
- }
341
- return shouldFocusStackOnly;
333
+ return isCalloutForStack;
342
334
  }
343
335
  function _getDomainNRangeValues(points, margins, width, chartType, isRTL, xAxisType, barWidth, tickValues) {
344
336
  let domainNRangeValue;
@@ -444,8 +436,8 @@ export const VerticalStackedBarChart = /*#__PURE__*/ React.forwardRef((_props, f
444
436
  const circleRef = {
445
437
  refElement: null
446
438
  };
447
- const noBarsAndLinesActive = circlePoint.xItem.chartData.filter((dataPoint)=>_noLegendHighlighted() || _isLegendHighlighted(dataPoint.legend)).length === 0;
448
439
  const yScaleBandwidthTranslate = !circlePoint.useSecondaryYScale && _yAxisType === YAxisType.StringAxis ? yScalePrimary.bandwidth() / 2 : 0;
440
+ const shouldHighlight = _isLegendHighlighted(circlePoint.legend) || _noLegendHighlighted() ? true : false;
449
441
  dots.push(/*#__PURE__*/ React.createElement("circle", {
450
442
  key: `${index}-${subIndex}-dot`,
451
443
  cx: xScale(circlePoint.xItem.xAxisPoint),
@@ -463,13 +455,11 @@ export const VerticalStackedBarChart = /*#__PURE__*/ React.forwardRef((_props, f
463
455
  ref: (e)=>{
464
456
  circleRef.refElement = e;
465
457
  },
466
- ...noBarsAndLinesActive ? {
467
- tabIndex: !props.hideTooltip ? 0 : undefined,
468
- onFocus: (event)=>_lineFocus(event, circlePoint, circleRef),
469
- onBlur: _handleMouseOut,
470
- role: 'img',
471
- 'aria-label': _getAriaLabel(circlePoint.xItem, circlePoint)
472
- } : {}
458
+ tabIndex: !props.hideTooltip && shouldHighlight ? 0 : undefined,
459
+ onFocus: (event)=>_lineFocus(event, circlePoint, circleRef),
460
+ onBlur: _handleMouseOut,
461
+ role: "img",
462
+ "aria-label": _getAriaLabel(circlePoint.xItem, circlePoint, true)
473
463
  }));
474
464
  });
475
465
  });
@@ -736,8 +726,7 @@ export const VerticalStackedBarChart = /*#__PURE__*/ React.forwardRef((_props, f
736
726
  const classes = useVerticalStackedBarChartStyles(props);
737
727
  function _createBar(xBarScale, yBarScale, containerHeight, xElement) {
738
728
  const { barCornerRadius = 0, barMinimumHeight = 0 } = props;
739
- const _isHavingLines = props.data.some((item)=>item.lineData && item.lineData.length > 0);
740
- const shouldFocusWholeStack = _toFocusWholeStack(_isHavingLines);
729
+ const shouldFocusWholeStack = _toFocusWholeStack();
741
730
  if (_xAxisType === XAxisTypes.StringAxis) {
742
731
  _barWidth = getBarWidth(props.barWidth, props.maxBarWidth, xBarScale.bandwidth());
743
732
  }
@@ -1010,7 +999,7 @@ export const VerticalStackedBarChart = /*#__PURE__*/ React.forwardRef((_props, f
1010
999
  if (!_isChartEmpty()) {
1011
1000
  _adjustProps();
1012
1001
  const _isHavingLines = props.data.some((item)=>item.lineData && item.lineData.length > 0);
1013
- const shouldFocusWholeStack = _toFocusWholeStack(_isHavingLines);
1002
+ const shouldFocusWholeStack = _toFocusWholeStack();
1014
1003
  _dataset = _createDataSetLayer();
1015
1004
  const legendBars = _getLegendData(_points, _createLegendsForLine(props.data));
1016
1005
  const calloutProps = {
@@ -1024,7 +1013,7 @@ export const VerticalStackedBarChart = /*#__PURE__*/ React.forwardRef((_props, f
1024
1013
  ...getAccessibleDataObject(callOutAccessibilityData),
1025
1014
  clickPosition: clickPosition,
1026
1015
  isPopoverOpen: isPopoverOpen,
1027
- isCalloutForStack: props.isCalloutForStack || _isHavingLines && (_noLegendHighlighted() || _getHighlightedLegend().length > 1),
1016
+ isCalloutForStack: shouldFocusWholeStack,
1028
1017
  isCartesian: true,
1029
1018
  customCallout: {
1030
1019
  customizedCallout: _getCustomizedCallout() !== null ? _getCustomizedCallout() : undefined,
@@ -1069,7 +1058,7 @@ export const VerticalStackedBarChart = /*#__PURE__*/ React.forwardRef((_props, f
1069
1058
  ],
1070
1059
  getYDomainMargins: _getYDomainMargins,
1071
1060
  /* eslint-disable react/jsx-no-bind */ children: (props)=>{
1072
- return /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement("g", null, _bars), /*#__PURE__*/ React.createElement("g", null, _isHavingLines && _createLines(props.xScale, props.yScalePrimary, props.containerHeight, props.containerWidth, props.yScaleSecondary)));
1061
+ return /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement("g", _arrowNavigationAttributes, _bars), /*#__PURE__*/ React.createElement("g", null, _isHavingLines && _createLines(props.xScale, props.yScalePrimary, props.containerHeight, props.containerWidth, props.yScaleSecondary)));
1073
1062
  }
1074
1063
  });
1075
1064
  }