@fluentui/react-charts 9.3.27 → 9.3.28

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 (78) hide show
  1. package/CHANGELOG.md +23 -2
  2. package/dist/index.d.cts +51 -0
  3. package/dist/index.d.ts +51 -0
  4. package/lib/components/AreaChart/AreaChart.js +33 -3
  5. package/lib/components/AreaChart/AreaChart.js.map +1 -1
  6. package/lib/components/CommonComponents/CartesianChart.js +6 -0
  7. package/lib/components/CommonComponents/CartesianChart.js.map +1 -1
  8. package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
  9. package/lib/components/CommonComponents/ChartPopover.js +2 -1
  10. package/lib/components/CommonComponents/ChartPopover.js.map +1 -1
  11. package/lib/components/GanttChart/GanttChart.js +1 -0
  12. package/lib/components/GanttChart/GanttChart.js.map +1 -1
  13. package/lib/components/GaugeChart/GaugeChart.js +33 -12
  14. package/lib/components/GaugeChart/GaugeChart.js.map +1 -1
  15. package/lib/components/GaugeChart/GaugeChart.types.js.map +1 -1
  16. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +25 -25
  17. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -1
  18. package/lib/components/HeatMapChart/HeatMapChart.js +1 -0
  19. package/lib/components/HeatMapChart/HeatMapChart.js.map +1 -1
  20. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +2 -1
  21. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
  22. package/lib/components/Legends/Legends.js +15 -18
  23. package/lib/components/Legends/Legends.js.map +1 -1
  24. package/lib/components/Legends/OverflowMenu.js +13 -10
  25. package/lib/components/Legends/OverflowMenu.js.map +1 -1
  26. package/lib/components/LineChart/LineChart.js +17 -13
  27. package/lib/components/LineChart/LineChart.js.map +1 -1
  28. package/lib/components/ScatterChart/ScatterChart.js +2 -1
  29. package/lib/components/ScatterChart/ScatterChart.js.map +1 -1
  30. package/lib/components/VegaDeclarativeChart/VegaLiteExpressionEvaluator.js +1 -0
  31. package/lib/components/VegaDeclarativeChart/VegaLiteExpressionEvaluator.js.map +1 -1
  32. package/lib/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.js +52 -44
  33. package/lib/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.js.map +1 -1
  34. package/lib/components/VerticalBarChart/VerticalBarChart.js +2 -1
  35. package/lib/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
  36. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js +1 -0
  37. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
  38. package/lib/types/DataPoint.js.map +1 -1
  39. package/lib/utilities/test-data/specialChartNames.js +11 -0
  40. package/lib/utilities/test-data/specialChartNames.js.map +1 -0
  41. package/lib-commonjs/components/AreaChart/AreaChart.cjs +33 -3
  42. package/lib-commonjs/components/AreaChart/AreaChart.cjs.map +1 -1
  43. package/lib-commonjs/components/CommonComponents/CartesianChart.cjs +6 -0
  44. package/lib-commonjs/components/CommonComponents/CartesianChart.cjs.map +1 -1
  45. package/lib-commonjs/components/CommonComponents/CartesianChart.types.cjs.map +1 -1
  46. package/lib-commonjs/components/CommonComponents/ChartPopover.cjs +2 -1
  47. package/lib-commonjs/components/CommonComponents/ChartPopover.cjs.map +1 -1
  48. package/lib-commonjs/components/GanttChart/GanttChart.cjs +1 -0
  49. package/lib-commonjs/components/GanttChart/GanttChart.cjs.map +1 -1
  50. package/lib-commonjs/components/GaugeChart/GaugeChart.cjs +33 -12
  51. package/lib-commonjs/components/GaugeChart/GaugeChart.cjs.map +1 -1
  52. package/lib-commonjs/components/GaugeChart/GaugeChart.types.cjs.map +1 -1
  53. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.cjs +24 -23
  54. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.cjs.map +1 -1
  55. package/lib-commonjs/components/HeatMapChart/HeatMapChart.cjs +1 -0
  56. package/lib-commonjs/components/HeatMapChart/HeatMapChart.cjs.map +1 -1
  57. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.cjs +2 -1
  58. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.cjs.map +1 -1
  59. package/lib-commonjs/components/Legends/Legends.cjs +15 -17
  60. package/lib-commonjs/components/Legends/Legends.cjs.map +1 -1
  61. package/lib-commonjs/components/Legends/OverflowMenu.cjs +12 -9
  62. package/lib-commonjs/components/Legends/OverflowMenu.cjs.map +1 -1
  63. package/lib-commonjs/components/LineChart/LineChart.cjs +17 -13
  64. package/lib-commonjs/components/LineChart/LineChart.cjs.map +1 -1
  65. package/lib-commonjs/components/ScatterChart/ScatterChart.cjs +2 -1
  66. package/lib-commonjs/components/ScatterChart/ScatterChart.cjs.map +1 -1
  67. package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteExpressionEvaluator.cjs +1 -0
  68. package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteExpressionEvaluator.cjs.map +1 -1
  69. package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.cjs +52 -44
  70. package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.cjs.map +1 -1
  71. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.cjs +2 -1
  72. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.cjs.map +1 -1
  73. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.cjs +1 -0
  74. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.cjs.map +1 -1
  75. package/lib-commonjs/types/DataPoint.cjs.map +1 -1
  76. package/lib-commonjs/utilities/test-data/specialChartNames.cjs +21 -0
  77. package/lib-commonjs/utilities/test-data/specialChartNames.cjs.map +1 -0
  78. package/package.json +9 -9
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/Legends/OverflowMenu.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport { Menu, MenuTrigger, MenuPopover, MenuList, MenuItemCheckbox } from '@fluentui/react-menu';\nimport { MenuButton } from '@fluentui/react-button';\nimport { useOverflowMenu } from '@fluentui/react-overflow';\n\nexport const OverflowMenu: React.FC<{\n itemIds: string[];\n title: string;\n items: JSXElement[];\n}> = ({ itemIds, title, items }) => {\n const { ref, overflowCount, isOverflowing } = useOverflowMenu<HTMLButtonElement>();\n let displayLabel = title;\n displayLabel = title === '' ? `+${overflowCount} items` : `+${overflowCount} ${title}`;\n\n if (!isOverflowing) {\n return null;\n }\n const remainingItemsCount = itemIds.length - overflowCount;\n const checkedLegends: string[] = [];\n const menuList = [];\n for (let i = remainingItemsCount; i < itemIds.length; i++) {\n const buttonElement = items[i];\n const value = `${buttonElement.props['data-title'] ?? i}`;\n if (buttonElement.props['data-selected']) {\n checkedLegends.push(value);\n }\n menuList.push(\n <MenuItemCheckbox\n key={i}\n name=\"legends\"\n value={value}\n // Full-list position so counts match the listbox.\n aria-setsize={itemIds.length}\n aria-posinset={i + 1}\n // Hide the checkmark so the row matches the listbox legend; selection is conveyed via aria-checked.\n checkmark={null}\n onClick={e => buttonElement.props.onClick?.(e)}\n // The content is smaller than the row, so handle hover/focus on the item to cover its full area.\n onMouseEnter={() => buttonElement.props.onMouseOver?.()}\n onMouseLeave={() => buttonElement.props.onMouseOut?.()}\n onFocus={() => buttonElement.props.onFocus?.()}\n onBlur={() => buttonElement.props.onBlur?.()}\n >\n {React.cloneElement(buttonElement, {\n onClick: undefined,\n onMouseOver: undefined,\n onMouseOut: undefined,\n onFocus: undefined,\n onBlur: undefined,\n })}\n </MenuItemCheckbox>,\n );\n }\n return (\n <Menu>\n <MenuTrigger disableButtonEnhancement>\n <MenuButton ref={ref}>{displayLabel}</MenuButton>\n </MenuTrigger>\n\n <MenuPopover>\n <MenuList aria-label=\"Legends\" checkedValues={{ legends: checkedLegends }}>\n {menuList}\n </MenuList>\n </MenuPopover>\n </Menu>\n );\n};\n"],"names":["React","Menu","MenuTrigger","MenuPopover","MenuList","MenuItemCheckbox","MenuButton","useOverflowMenu","OverflowMenu","itemIds","title","items","ref","overflowCount","isOverflowing","displayLabel","remainingItemsCount","length","checkedLegends","menuList","i","buttonElement","value","props","push","key","name","aria-setsize","aria-posinset","checkmark","onClick","e","onMouseEnter","onMouseOver","onMouseLeave","onMouseOut","onFocus","onBlur","cloneElement","undefined","disableButtonEnhancement","aria-label","checkedValues","legends"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,IAAI,EAAEC,WAAW,EAAEC,WAAW,EAAEC,QAAQ,EAAEC,gBAAgB,QAAQ,uBAAuB;AAClG,SAASC,UAAU,QAAQ,yBAAyB;AACpD,SAASC,eAAe,QAAQ,2BAA2B;AAE3D,OAAO,MAAMC,eAIR,CAAC,EAAEC,OAAO,EAAEC,KAAK,EAAEC,KAAK,EAAE;IAC7B,MAAM,EAAEC,GAAG,EAAEC,aAAa,EAAEC,aAAa,EAAE,GAAGP;IAC9C,IAAIQ,eAAeL;IACnBK,eAAeL,UAAU,KAAK,CAAC,CAAC,EAAEG,cAAc,MAAM,CAAC,GAAG,CAAC,CAAC,EAAEA,cAAc,CAAC,EAAEH,OAAO;IAEtF,IAAI,CAACI,eAAe;QAClB,OAAO;IACT;IACA,MAAME,sBAAsBP,QAAQQ,MAAM,GAAGJ;IAC7C,MAAMK,iBAA2B,EAAE;IACnC,MAAMC,WAAW,EAAE;IACnB,IAAK,IAAIC,IAAIJ,qBAAqBI,IAAIX,QAAQQ,MAAM,EAAEG,IAAK;QACzD,MAAMC,gBAAgBV,KAAK,CAACS,EAAE;YACbC;QAAjB,MAAMC,QAAQ,GAAGD,CAAAA,iCAAAA,cAAcE,KAAK,CAAC,aAAa,cAAjCF,4CAAAA,iCAAqCD,GAAG;QACzD,IAAIC,cAAcE,KAAK,CAAC,gBAAgB,EAAE;YACxCL,eAAeM,IAAI,CAACF;QACtB;QACAH,SAASK,IAAI,eACX,oBAACnB;YACCoB,KAAKL;YACLM,MAAK;YACLJ,OAAOA;YACP,kDAAkD;YAClDK,gBAAclB,QAAQQ,MAAM;YAC5BW,iBAAeR,IAAI;YACnB,oGAAoG;YACpGS,WAAW;YACXC,SAASC,CAAAA;oBAAKV,8BAAAA;wBAAAA,+BAAAA,CAAAA,uBAAAA,cAAcE,KAAK,EAACO,OAAO,cAA3BT,mDAAAA,kCAAAA,sBAA8BU;;YAC5C,iGAAiG;YACjGC,cAAc;oBAAMX,kCAAAA;wBAAAA,mCAAAA,CAAAA,uBAAAA,cAAcE,KAAK,EAACU,WAAW,cAA/BZ,uDAAAA,sCAAAA;;YACpBa,cAAc;oBAAMb,iCAAAA;wBAAAA,kCAAAA,CAAAA,uBAAAA,cAAcE,KAAK,EAACY,UAAU,cAA9Bd,sDAAAA,qCAAAA;;YACpBe,SAAS;oBAAMf,8BAAAA;wBAAAA,+BAAAA,CAAAA,uBAAAA,cAAcE,KAAK,EAACa,OAAO,cAA3Bf,mDAAAA,kCAAAA;;YACfgB,QAAQ;oBAAMhB,6BAAAA;wBAAAA,8BAAAA,CAAAA,uBAAAA,cAAcE,KAAK,EAACc,MAAM,cAA1BhB,kDAAAA,iCAAAA;;yBAEbrB,MAAMsC,YAAY,CAACjB,eAAe;YACjCS,SAASS;YACTN,aAAaM;YACbJ,YAAYI;YACZH,SAASG;YACTF,QAAQE;QACV;IAGN;IACA,qBACE,oBAACtC,0BACC,oBAACC;QAAYsC,0BAAAA;qBACX,oBAAClC;QAAWM,KAAKA;OAAMG,8BAGzB,oBAACZ,iCACC,oBAACC;QAASqC,cAAW;QAAUC,eAAe;YAAEC,SAASzB;QAAe;OACrEC;AAKX,EAAE"}
1
+ {"version":3,"sources":["../src/components/Legends/OverflowMenu.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport { Menu, MenuTrigger, MenuPopover, MenuList, MenuItemCheckbox } from '@fluentui/react-menu';\nimport { MenuButton } from '@fluentui/react-button';\nimport { useOverflowMenu, useOverflowVisibility } from '@fluentui/react-overflow';\n\nexport const OverflowMenu: React.FC<{\n itemIds: string[];\n title: string;\n items: JSXElement[];\n}> = ({ itemIds, title, items }) => {\n const { ref, isOverflowing } = useOverflowMenu<HTMLButtonElement>();\n const { itemVisibility } = useOverflowVisibility();\n\n if (!isOverflowing) {\n return null;\n }\n const checkedLegends: string[] = [];\n const menuList = [];\n for (let index = 0; index < items.length; index++) {\n const itemId = itemIds[index];\n if (itemVisibility[itemId] !== false) {\n continue;\n }\n const buttonElement = items[index];\n const value = `${buttonElement.props['data-title'] ?? index}`;\n if (buttonElement.props['data-selected']) {\n checkedLegends.push(value);\n }\n menuList.push(\n <MenuItemCheckbox\n key={itemId}\n name=\"legends\"\n value={value}\n // Full-list position so counts match the listbox.\n aria-setsize={itemIds.length}\n aria-posinset={index + 1}\n // Hide the checkmark so the row matches the listbox legend; selection is conveyed via aria-checked.\n checkmark={null}\n onClick={e => buttonElement.props.onClick?.(e)}\n // The content is smaller than the row, so handle hover/focus on the item to cover its full area.\n onMouseEnter={() => buttonElement.props.onMouseOver?.()}\n onMouseLeave={() => buttonElement.props.onMouseOut?.()}\n onFocus={() => buttonElement.props.onFocus?.()}\n onBlur={() => buttonElement.props.onBlur?.()}\n >\n {React.cloneElement(buttonElement, {\n onClick: undefined,\n onMouseOver: undefined,\n onMouseOut: undefined,\n onFocus: undefined,\n onBlur: undefined,\n })}\n </MenuItemCheckbox>,\n );\n }\n const displayLabel = title === '' ? `+${menuList.length} items` : `+${menuList.length} ${title}`;\n\n return (\n <Menu>\n <MenuTrigger disableButtonEnhancement>\n <MenuButton ref={ref}>{displayLabel}</MenuButton>\n </MenuTrigger>\n\n <MenuPopover>\n <MenuList aria-label=\"Legends\" checkedValues={{ legends: checkedLegends }}>\n {menuList}\n </MenuList>\n </MenuPopover>\n </Menu>\n );\n};\n"],"names":["React","Menu","MenuTrigger","MenuPopover","MenuList","MenuItemCheckbox","MenuButton","useOverflowMenu","useOverflowVisibility","OverflowMenu","itemIds","title","items","ref","isOverflowing","itemVisibility","checkedLegends","menuList","index","length","itemId","buttonElement","value","props","push","key","name","aria-setsize","aria-posinset","checkmark","onClick","e","onMouseEnter","onMouseOver","onMouseLeave","onMouseOut","onFocus","onBlur","cloneElement","undefined","displayLabel","disableButtonEnhancement","aria-label","checkedValues","legends"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,IAAI,EAAEC,WAAW,EAAEC,WAAW,EAAEC,QAAQ,EAAEC,gBAAgB,QAAQ,uBAAuB;AAClG,SAASC,UAAU,QAAQ,yBAAyB;AACpD,SAASC,eAAe,EAAEC,qBAAqB,QAAQ,2BAA2B;AAElF,OAAO,MAAMC,eAIR,CAAC,EAAEC,OAAO,EAAEC,KAAK,EAAEC,KAAK,EAAE;IAC7B,MAAM,EAAEC,GAAG,EAAEC,aAAa,EAAE,GAAGP;IAC/B,MAAM,EAAEQ,cAAc,EAAE,GAAGP;IAE3B,IAAI,CAACM,eAAe;QAClB,OAAO;IACT;IACA,MAAME,iBAA2B,EAAE;IACnC,MAAMC,WAAW,EAAE;IACnB,IAAK,IAAIC,QAAQ,GAAGA,QAAQN,MAAMO,MAAM,EAAED,QAAS;QACjD,MAAME,SAASV,OAAO,CAACQ,MAAM;QAC7B,IAAIH,cAAc,CAACK,OAAO,KAAK,OAAO;YACpC;QACF;QACA,MAAMC,gBAAgBT,KAAK,CAACM,MAAM;YACjBG;QAAjB,MAAMC,QAAQ,GAAGD,CAAAA,iCAAAA,cAAcE,KAAK,CAAC,aAAa,cAAjCF,4CAAAA,iCAAqCH,OAAO;QAC7D,IAAIG,cAAcE,KAAK,CAAC,gBAAgB,EAAE;YACxCP,eAAeQ,IAAI,CAACF;QACtB;QACAL,SAASO,IAAI,eACX,oBAACnB;YACCoB,KAAKL;YACLM,MAAK;YACLJ,OAAOA;YACP,kDAAkD;YAClDK,gBAAcjB,QAAQS,MAAM;YAC5BS,iBAAeV,QAAQ;YACvB,oGAAoG;YACpGW,WAAW;YACXC,SAASC,CAAAA;oBAAKV,8BAAAA;wBAAAA,+BAAAA,CAAAA,uBAAAA,cAAcE,KAAK,EAACO,OAAO,cAA3BT,mDAAAA,kCAAAA,sBAA8BU;;YAC5C,iGAAiG;YACjGC,cAAc;oBAAMX,kCAAAA;wBAAAA,mCAAAA,CAAAA,uBAAAA,cAAcE,KAAK,EAACU,WAAW,cAA/BZ,uDAAAA,sCAAAA;;YACpBa,cAAc;oBAAMb,iCAAAA;wBAAAA,kCAAAA,CAAAA,uBAAAA,cAAcE,KAAK,EAACY,UAAU,cAA9Bd,sDAAAA,qCAAAA;;YACpBe,SAAS;oBAAMf,8BAAAA;wBAAAA,+BAAAA,CAAAA,uBAAAA,cAAcE,KAAK,EAACa,OAAO,cAA3Bf,mDAAAA,kCAAAA;;YACfgB,QAAQ;oBAAMhB,6BAAAA;wBAAAA,8BAAAA,CAAAA,uBAAAA,cAAcE,KAAK,EAACc,MAAM,cAA1BhB,kDAAAA,iCAAAA;;yBAEbrB,MAAMsC,YAAY,CAACjB,eAAe;YACjCS,SAASS;YACTN,aAAaM;YACbJ,YAAYI;YACZH,SAASG;YACTF,QAAQE;QACV;IAGN;IACA,MAAMC,eAAe7B,UAAU,KAAK,CAAC,CAAC,EAAEM,SAASE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAEF,SAASE,MAAM,CAAC,CAAC,EAAER,OAAO;IAEhG,qBACE,oBAACV,0BACC,oBAACC;QAAYuC,0BAAAA;qBACX,oBAACnC;QAAWO,KAAKA;OAAM2B,8BAGzB,oBAACrC,iCACC,oBAACC;QAASsC,cAAW;QAAUC,eAAe;YAAEC,SAAS5B;QAAe;OACrEC;AAKX,EAAE"}
@@ -295,7 +295,7 @@ const PATH_MULTIPLY_SIZE = 2.5;
295
295
  setActiveLegend('');
296
296
  },
297
297
  hoverAction: ()=>{
298
- _handleChartMouseLeave();
298
+ _dismissCallout();
299
299
  setActiveLegend(legendTitle);
300
300
  },
301
301
  ...representativePoint.legendShape && {
@@ -324,7 +324,7 @@ const PATH_MULTIPLY_SIZE = 2.5;
324
324
  setActiveLegend('');
325
325
  },
326
326
  hoverAction: ()=>{
327
- _handleChartMouseLeave();
327
+ _dismissCallout();
328
328
  setActiveLegend(title);
329
329
  },
330
330
  opacity: _getColorFillBarOpacity(colorFillBar),
@@ -414,6 +414,7 @@ const PATH_MULTIPLY_SIZE = 2.5;
414
414
  const bordersForLine = [];
415
415
  const pointsForLine = [];
416
416
  const legendVal = _points[i].legend;
417
+ const seriesAriaLabel = `${legendVal}, line ${i + 1} of ${_points.length} with ${_points[i].data.length} data points.`;
417
418
  const lineColor = _points[i].color;
418
419
  const verticaLineHeight = containerHeight - margins.bottom + 6;
419
420
  const useSecondaryYScale = !!(_points[i].useSecondaryYScale && _yScaleSecondary);
@@ -464,7 +465,7 @@ const PATH_MULTIPLY_SIZE = 2.5;
464
465
  onMouseOut: _handleMouseOut,
465
466
  strokeWidth: activePoint === circleId ? DEFAULT_LINE_STROKE_SIZE : 0,
466
467
  stroke: activePoint === circleId ? lineColor : '',
467
- role: "img",
468
+ role: "option",
468
469
  "aria-label": (_points_i_data__text = _points[i].data[0].text) !== null && _points_i_data__text !== void 0 ? _points_i_data__text : _getAriaLabel(i, 0),
469
470
  ref: (e)=>{
470
471
  _refCallback(e, circleId);
@@ -537,7 +538,9 @@ const PATH_MULTIPLY_SIZE = 2.5;
537
538
  onMouseOut: _handleMouseOut,
538
539
  ..._getClickHandler(_points[i].onLineClick),
539
540
  opacity: 1,
540
- tabIndex: isLegendSelected ? 0 : undefined
541
+ tabIndex: isLegendSelected ? 0 : undefined,
542
+ role: props.optimizeLargeData ? 'option' : undefined,
543
+ "aria-label": props.optimizeLargeData ? seriesAriaLabel : undefined
541
544
  }));
542
545
  } else if (shouldDrawLines) {
543
546
  var _points_i_lineOptions10, _points_i_lineOptions11;
@@ -604,7 +607,7 @@ const PATH_MULTIPLY_SIZE = 2.5;
604
607
  onMouseOver: (event)=>_onMouseOverLargeDataset(i, verticaLineHeight, event, yScale),
605
608
  onFocus: (event)=>_onFocusLargeDataset(i, verticaLineHeight, event, yScale, k),
606
609
  onMouseOut: _handleMouseOut,
607
- role: "img",
610
+ role: "option",
608
611
  "aria-label": (_points_i_data_k_text = _points[i].data[k].text) !== null && _points_i_data_k_text !== void 0 ? _points_i_data_k_text : _getAriaLabel(i, k)
609
612
  }));
610
613
  }
@@ -660,7 +663,7 @@ const PATH_MULTIPLY_SIZE = 2.5;
660
663
  fill: ((_points_i_data_ = _points[i].data[j - 1]) === null || _points_i_data_ === void 0 ? void 0 : _points_i_data_.markerColor) || _getPointFill(lineColor, circleId, j, false),
661
664
  stroke: ((_points_i_data_1 = _points[i].data[j - 1]) === null || _points_i_data_1 === void 0 ? void 0 : _points_i_data_1.markerColor) || lineColor,
662
665
  strokeWidth: strokeWidth,
663
- role: "img",
666
+ role: "option",
664
667
  "aria-label": (_points_i_data__text1 = _points[i].data[j - 1].text) !== null && _points_i_data__text1 !== void 0 ? _points_i_data__text1 : _getAriaLabel(i, j - 1)
665
668
  }), !_isScatterPolar && supportsTextMode && text && /*#__PURE__*/ React.createElement("text", {
666
669
  key: `${circleId}-label`,
@@ -688,7 +691,7 @@ const PATH_MULTIPLY_SIZE = 2.5;
688
691
  fill: ((_points_i_data_2 = _points[i].data[j - 1]) === null || _points_i_data_2 === void 0 ? void 0 : _points_i_data_2.markerColor) || _getPointFill(lineColor, circleId, j, false),
689
692
  stroke: ((_points_i_data_3 = _points[i].data[j - 1]) === null || _points_i_data_3 === void 0 ? void 0 : _points_i_data_3.markerColor) || lineColor,
690
693
  strokeWidth: strokeWidth,
691
- role: "img",
694
+ role: "option",
692
695
  "aria-label": _getAriaLabel(i, j - 1),
693
696
  tabIndex: isLegendSelected ? 0 : undefined
694
697
  }));
@@ -734,7 +737,7 @@ const PATH_MULTIPLY_SIZE = 2.5;
734
737
  fill: _getPointFill(lineColor, lastCircleId, j, true),
735
738
  stroke: lineColor,
736
739
  strokeWidth: strokeWidth,
737
- role: "img",
740
+ role: "option",
738
741
  "aria-label": (_points_i_data_j_text = _points[i].data[j].text) !== null && _points_i_data_j_text !== void 0 ? _points_i_data_j_text : _getAriaLabel(i, j)
739
742
  }), !_isScatterPolar && lastSupportsTextMode && lastText && /*#__PURE__*/ React.createElement("text", {
740
743
  key: `${lastCircleId}-label`,
@@ -761,7 +764,7 @@ const PATH_MULTIPLY_SIZE = 2.5;
761
764
  fill: ((_points_i_data_j = _points[i].data[j]) === null || _points_i_data_j === void 0 ? void 0 : _points_i_data_j.markerColor) || _getPointFill(lineColor, lastCircleId, j, true),
762
765
  stroke: ((_points_i_data_j1 = _points[i].data[j]) === null || _points_i_data_j1 === void 0 ? void 0 : _points_i_data_j1.markerColor) || lineColor,
763
766
  strokeWidth: strokeWidth,
764
- role: "img",
767
+ role: "option",
765
768
  "aria-label": _getAriaLabel(i, j),
766
769
  tabIndex: isLegendSelected ? 0 : undefined
767
770
  }), /*#__PURE__*/ React.createElement("circle", {
@@ -881,8 +884,8 @@ const PATH_MULTIPLY_SIZE = 2.5;
881
884
  }
882
885
  lines.push(/*#__PURE__*/ React.createElement("g", {
883
886
  key: `line_${i}`,
884
- role: "region",
885
- "aria-label": `${legendVal}, line ${i + 1} of ${_points.length} with ${_points[i].data.length} data points.`
887
+ role: "listbox",
888
+ "aria-label": props.optimizeLargeData ? `${legendVal} data series` : seriesAriaLabel
886
889
  }, bordersForLine, linesForLine, pointsForLine));
887
890
  }
888
891
  return lines;
@@ -1121,7 +1124,7 @@ const PATH_MULTIPLY_SIZE = 2.5;
1121
1124
  function _handleMouseOut() {
1122
1125
  d3Select(`#${_verticalLine}`).attr('visibility', 'hidden');
1123
1126
  }
1124
- function _handleChartMouseLeave() {
1127
+ function _dismissCallout() {
1125
1128
  _uniqueCallOutID = null;
1126
1129
  setActivePoint('');
1127
1130
  if (isPopoverOpen) {
@@ -1292,7 +1295,8 @@ const PATH_MULTIPLY_SIZE = 2.5;
1292
1295
  } : {},
1293
1296
  getDomainNRangeValues: _getDomainNRangeValues,
1294
1297
  createStringYAxis: createStringYAxis,
1295
- onChartMouseLeave: _handleChartMouseLeave,
1298
+ onChartMouseLeave: _dismissCallout,
1299
+ onChartBlur: _dismissCallout,
1296
1300
  enableFirstRenderOptimization: props.enablePerfOptimization && _firstRenderOptimization,
1297
1301
  componentRef: cartesianChartRef,
1298
1302
  children: (props)=>{