@automattic/charts 0.44.0 → 0.45.0

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 (110) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/{chunk-3O6FHD2T.js → chunk-A3PGOCJO.js} +46 -4
  3. package/dist/chunk-A3PGOCJO.js.map +1 -0
  4. package/dist/{chunk-G66WE3ON.js → chunk-BWEMZ72V.js} +41 -15
  5. package/dist/chunk-BWEMZ72V.js.map +1 -0
  6. package/dist/{chunk-BZ6UDD37.cjs → chunk-CNAKHZMW.cjs} +69 -31
  7. package/dist/chunk-CNAKHZMW.cjs.map +1 -0
  8. package/dist/{chunk-G4FX5I3V.cjs → chunk-EPHDZVIG.cjs} +80 -56
  9. package/dist/chunk-EPHDZVIG.cjs.map +1 -0
  10. package/dist/{chunk-MAV6SE6L.cjs → chunk-GEB4GELE.cjs} +24 -24
  11. package/dist/{chunk-MAV6SE6L.cjs.map → chunk-GEB4GELE.cjs.map} +1 -1
  12. package/dist/{chunk-KM62I6SD.js → chunk-HVWETEEV.js} +53 -15
  13. package/dist/chunk-HVWETEEV.js.map +1 -0
  14. package/dist/{chunk-HYHBAHIU.js → chunk-JGX3ZNK5.js} +3 -3
  15. package/dist/{chunk-W5RFMC3A.js → chunk-JI6OGGGF.js} +3 -3
  16. package/dist/{chunk-SHADFB3T.js → chunk-KEBKTDOQ.js} +2 -2
  17. package/dist/{chunk-2HUX2CAT.cjs → chunk-LSGYIUQX.cjs} +44 -2
  18. package/dist/chunk-LSGYIUQX.cjs.map +1 -0
  19. package/dist/{chunk-UHESRL2F.cjs → chunk-N36WJKYM.cjs} +6 -6
  20. package/dist/{chunk-UHESRL2F.cjs.map → chunk-N36WJKYM.cjs.map} +1 -1
  21. package/dist/{chunk-Q2LDRQN7.js → chunk-PFT2X4OW.js} +2 -2
  22. package/dist/{chunk-GK3XEXVI.cjs → chunk-PNSMPZ3E.cjs} +8 -8
  23. package/dist/{chunk-GK3XEXVI.cjs.map → chunk-PNSMPZ3E.cjs.map} +1 -1
  24. package/dist/{chunk-SC462VDM.cjs → chunk-QPHNEQCK.cjs} +11 -11
  25. package/dist/{chunk-SC462VDM.cjs.map → chunk-QPHNEQCK.cjs.map} +1 -1
  26. package/dist/{chunk-2HB55BRH.js → chunk-VM3CHO3G.js} +62 -38
  27. package/dist/chunk-VM3CHO3G.js.map +1 -0
  28. package/dist/{chunk-ZA7OWPY7.cjs → chunk-VOMSG7KV.cjs} +50 -24
  29. package/dist/chunk-VOMSG7KV.cjs.map +1 -0
  30. package/dist/{chunk-QLLKOSJ6.cjs → chunk-YKVKFUV7.cjs} +50 -24
  31. package/dist/chunk-YKVKFUV7.cjs.map +1 -0
  32. package/dist/{chunk-XDIWMJZD.js → chunk-ZSNO2BYX.js} +39 -13
  33. package/dist/chunk-ZSNO2BYX.js.map +1 -0
  34. package/dist/components/bar-chart/index.cjs +4 -4
  35. package/dist/components/bar-chart/index.d.cts +2 -1
  36. package/dist/components/bar-chart/index.d.ts +2 -1
  37. package/dist/components/bar-chart/index.js +3 -3
  38. package/dist/components/bar-list-chart/index.cjs +5 -5
  39. package/dist/components/bar-list-chart/index.d.cts +1 -1
  40. package/dist/components/bar-list-chart/index.d.ts +1 -1
  41. package/dist/components/bar-list-chart/index.js +4 -4
  42. package/dist/components/conversion-funnel-chart/index.cjs +3 -3
  43. package/dist/components/conversion-funnel-chart/index.d.cts +1 -1
  44. package/dist/components/conversion-funnel-chart/index.d.ts +1 -1
  45. package/dist/components/conversion-funnel-chart/index.js +2 -2
  46. package/dist/components/leaderboard-chart/index.cjs +4 -4
  47. package/dist/components/leaderboard-chart/index.d.cts +2 -2
  48. package/dist/components/leaderboard-chart/index.d.ts +2 -2
  49. package/dist/components/leaderboard-chart/index.js +3 -3
  50. package/dist/components/legend/index.cjs +3 -3
  51. package/dist/components/legend/index.d.cts +1 -1
  52. package/dist/components/legend/index.d.ts +1 -1
  53. package/dist/components/legend/index.js +2 -2
  54. package/dist/components/line-chart/index.cjs +4 -4
  55. package/dist/components/line-chart/index.d.cts +1 -1
  56. package/dist/components/line-chart/index.d.ts +1 -1
  57. package/dist/components/line-chart/index.js +3 -3
  58. package/dist/components/pie-chart/index.cjs +4 -4
  59. package/dist/components/pie-chart/index.d.cts +7 -1
  60. package/dist/components/pie-chart/index.d.ts +7 -1
  61. package/dist/components/pie-chart/index.js +3 -3
  62. package/dist/components/pie-semi-circle-chart/index.cjs +4 -4
  63. package/dist/components/pie-semi-circle-chart/index.d.cts +7 -1
  64. package/dist/components/pie-semi-circle-chart/index.d.ts +7 -1
  65. package/dist/components/pie-semi-circle-chart/index.js +3 -3
  66. package/dist/components/tooltip/index.d.cts +1 -1
  67. package/dist/components/tooltip/index.d.ts +1 -1
  68. package/dist/hooks/index.cjs +4 -2
  69. package/dist/hooks/index.cjs.map +1 -1
  70. package/dist/hooks/index.d.cts +79 -2
  71. package/dist/hooks/index.d.ts +79 -2
  72. package/dist/hooks/index.js +3 -1
  73. package/dist/index.cjs +10 -10
  74. package/dist/index.d.cts +3 -3
  75. package/dist/index.d.ts +3 -3
  76. package/dist/index.js +9 -9
  77. package/dist/{leaderboard-chart-rqyTz1m6.d.ts → leaderboard-chart-Cpg_k_Vg.d.ts} +1 -1
  78. package/dist/{leaderboard-chart-BWEheWCd.d.cts → leaderboard-chart-DOaY0V1U.d.cts} +1 -1
  79. package/dist/providers/index.cjs +2 -2
  80. package/dist/providers/index.d.cts +2 -2
  81. package/dist/providers/index.d.ts +2 -2
  82. package/dist/providers/index.js +1 -1
  83. package/dist/{themes-CGUHFZ5g.d.ts → themes-CN85BQM1.d.ts} +1 -1
  84. package/dist/{themes-B4swlmql.d.cts → themes-TIJq1lG_.d.cts} +1 -1
  85. package/dist/{types-cEbX_Q2K.d.ts → types-73KOEWs9.d.cts} +3 -1
  86. package/dist/{types-cEbX_Q2K.d.cts → types-73KOEWs9.d.ts} +3 -1
  87. package/package.json +1 -1
  88. package/src/components/bar-chart/bar-chart.tsx +57 -11
  89. package/src/components/bar-chart/test/bar-chart.test.tsx +114 -0
  90. package/src/components/pie-chart/pie-chart.tsx +130 -93
  91. package/src/components/pie-chart/test/pie-chart.test.tsx +174 -0
  92. package/src/components/pie-semi-circle-chart/pie-semi-circle-chart.tsx +96 -57
  93. package/src/components/pie-semi-circle-chart/test/pie-semi-circle-chart.test.tsx +84 -0
  94. package/src/hooks/index.ts +1 -0
  95. package/src/hooks/use-interactive-legend-data.ts +138 -0
  96. package/src/types.ts +3 -1
  97. package/dist/chunk-2HB55BRH.js.map +0 -1
  98. package/dist/chunk-2HUX2CAT.cjs.map +0 -1
  99. package/dist/chunk-3O6FHD2T.js.map +0 -1
  100. package/dist/chunk-BZ6UDD37.cjs.map +0 -1
  101. package/dist/chunk-G4FX5I3V.cjs.map +0 -1
  102. package/dist/chunk-G66WE3ON.js.map +0 -1
  103. package/dist/chunk-KM62I6SD.js.map +0 -1
  104. package/dist/chunk-QLLKOSJ6.cjs.map +0 -1
  105. package/dist/chunk-XDIWMJZD.js.map +0 -1
  106. package/dist/chunk-ZA7OWPY7.cjs.map +0 -1
  107. /package/dist/{chunk-HYHBAHIU.js.map → chunk-JGX3ZNK5.js.map} +0 -0
  108. /package/dist/{chunk-W5RFMC3A.js.map → chunk-JI6OGGGF.js.map} +0 -0
  109. /package/dist/{chunk-SHADFB3T.js.map → chunk-KEBKTDOQ.js.map} +0 -0
  110. /package/dist/{chunk-Q2LDRQN7.js.map → chunk-PFT2X4OW.js.map} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/pie-chart/pie-chart.tsx","../src/components/pie-chart/pie-chart.module.scss"],"sourcesContent":["import { localPoint } from '@visx/event';\nimport { Group } from '@visx/group';\nimport { Pie } from '@visx/shape';\nimport { useTooltip, useTooltipInPortal } from '@visx/tooltip';\nimport { __ } from '@wordpress/i18n';\nimport clsx from 'clsx';\nimport { useCallback, useContext, useMemo } from 'react';\nimport { useElementHeight, useInteractiveLegendData } from '../../hooks';\nimport {\n\tGlobalChartsProvider,\n\tuseChartId,\n\tuseChartRegistration,\n\tuseGlobalChartsContext,\n\tuseGlobalChartsTheme,\n\tGlobalChartsContext,\n} from '../../providers';\nimport { attachSubComponents } from '../../utils';\nimport { getStringWidth } from '../../visx/text';\nimport { Legend, useChartLegendItems } from '../legend';\nimport { ChartSVG, ChartHTML, useChartChildren } from '../private/chart-composition';\nimport { SingleChartContext } from '../private/single-chart-context';\nimport { withResponsive, ResponsiveConfig } from '../private/with-responsive';\nimport { BaseTooltip } from '../tooltip';\nimport styles from './pie-chart.module.scss';\nimport type { BaseChartProps, DataPointPercentage, Optional } from '../../types';\nimport type { LegendValueDisplay } from '../legend';\nimport type { ChartComponentWithComposition } from '../private/chart-composition';\nimport type { SVGProps, MouseEvent, ReactNode, FC } from 'react';\n\nexport interface PieChartProps extends BaseChartProps< DataPointPercentage[] > {\n\t/**\n\t * Inner radius in pixels. If > 0, creates a donut chart. Defaults to 0.\n\t */\n\tinnerRadius?: number;\n\n\t/**\n\t * Add padding to the chart\n\t */\n\tpadding?: number;\n\n\t/**\n\t * Thickness of the pie chart.\n\t * A value between 0 and 1, where 0 means no thickness\n\t * and 1 means the maximum thickness.\n\t */\n\tthickness?: number;\n\n\t/**\n\t * Scale of the gap between groups in the pie chart\n\t * A value between 0 and 1, where 0 means no gap.\n\t */\n\tgapScale?: number;\n\n\t/**\n\t * Scale of the corner radius for the pie chart segments.\n\t * A value between 0 and 1, where 0 means no corner radius.\n\t */\n\tcornerScale?: number;\n\n\t/**\n\t * Whether to show labels on pie segments. Defaults to true.\n\t */\n\tshowLabels?: boolean;\n\n\t/**\n\t * What type of value to display in the legend when showValues is true.\n\t * - 'percentage': Shows percentage values (e.g., \"23%\") [default]\n\t * - 'value': Shows raw numeric values (e.g., \"30000\")\n\t * - 'valueDisplay': Shows formatted values (e.g., \"30K\")\n\t * - 'none': Shows no values, only labels\n\t */\n\tlegendValueDisplay?: LegendValueDisplay;\n\n\t/**\n\t * Enable interactive legend items that can toggle segment visibility.\n\t * Requires chartId and GlobalChartsProvider.\n\t * When segments are hidden, percentages are recalculated so visible segments total 100%.\n\t */\n\tlegendInteractive?: boolean;\n\n\t/**\n\t * Use the children prop to render additional elements on the chart.\n\t */\n\tchildren?: ReactNode;\n\n\t/**\n\t * Horizontal offset for tooltip positioning in pixels (default: 0)\n\t */\n\ttooltipOffsetX?: number;\n\n\t/**\n\t * Vertical offset for tooltip positioning in pixels (default: -15)\n\t */\n\ttooltipOffsetY?: number;\n}\n\n// Base props type with optional responsive properties\ntype PieChartBaseProps = Optional< PieChartProps, 'size' >;\n\n// Composition API types\ntype PieChartComponent = ChartComponentWithComposition< PieChartBaseProps >;\ntype PieChartResponsiveComponent = ChartComponentWithComposition<\n\tPieChartBaseProps & ResponsiveConfig\n>;\n\n/**\n * Validates the pie chart data\n * @param data - The data to validate\n * @return Object containing validation result and error message\n */\nconst validateData = ( data: DataPointPercentage[] ) => {\n\tif ( ! data.length ) {\n\t\treturn { isValid: false, message: 'No data available' };\n\t}\n\n\t// Check for negative values\n\tconst hasNegativeValues = data.some( item => item.percentage < 0 || item.value < 0 );\n\tif ( hasNegativeValues ) {\n\t\treturn { isValid: false, message: 'Invalid data: Negative values are not allowed' };\n\t}\n\n\t// Validate total percentage\n\tconst totalPercentage = data.reduce( ( sum, item ) => sum + item.percentage, 0 );\n\tif ( Math.abs( totalPercentage - 100 ) > 0.01 ) {\n\t\t// Using small epsilon for floating point comparison\n\t\treturn { isValid: false, message: 'Invalid percentage total: Must equal 100' };\n\t}\n\n\treturn { isValid: true, message: '' };\n};\n\n/**\n * Renders a pie or donut chart using the provided data.\n *\n * @param {PieChartProps} props - Component props\n * @return {JSX.Element} The rendered chart component\n */\nconst PieChartInternal = ( {\n\tdata,\n\tchartId: providedChartId,\n\twithTooltips = false,\n\tclassName,\n\tshowLegend = false,\n\tlegendOrientation = 'horizontal',\n\tlegendPosition = 'bottom',\n\tlegendAlignment = 'center',\n\tlegendMaxWidth,\n\tlegendTextOverflow = 'wrap',\n\tlegendItemClassName,\n\tlegendShape = 'circle',\n\tsize,\n\tthickness = 1,\n\tpadding = 0,\n\tgapScale = 0,\n\tcornerScale = 0,\n\tshowLabels = true,\n\tlegendValueDisplay = 'percentage',\n\tlegendInteractive = false,\n\tchildren = null,\n\ttooltipOffsetX = 0,\n\ttooltipOffsetY = -15,\n}: PieChartProps ) => {\n\tconst providerTheme = useGlobalChartsTheme();\n\tconst chartId = useChartId( providedChartId );\n\tconst [ legendRef, legendHeight ] = useElementHeight< HTMLDivElement >();\n\tconst { tooltipOpen, tooltipLeft, tooltipTop, tooltipData, hideTooltip, showTooltip } =\n\t\tuseTooltip< DataPointPercentage >();\n\n\t// Set up portal tooltip for better z-index handling\n\tconst { containerRef, TooltipInPortal } = useTooltipInPortal( {\n\t\tdetectBounds: true,\n\t\tscroll: true,\n\t\tdebounce: 0,\n\t} );\n\n\tconst onMouseLeave = useCallback( () => {\n\t\tif ( ! withTooltips ) {\n\t\t\treturn;\n\t\t}\n\t\thideTooltip();\n\t}, [ withTooltips, hideTooltip ] );\n\n\tconst { getElementStyles, isSeriesVisible } = useGlobalChartsContext();\n\n\t// Filter and recalculate data for interactive legends\n\tconst { visibleData, allSegmentsHidden, legendData } = useInteractiveLegendData( {\n\t\tdata,\n\t\tchartId,\n\t\tlegendInteractive,\n\t\tisSeriesVisible,\n\t} );\n\n\t// Memoize legend options to prevent unnecessary re-calculations\n\tconst legendOptions = useMemo(\n\t\t() => ( { showValues: true, legendValueDisplay } ),\n\t\t[ legendValueDisplay ]\n\t);\n\n\t// Create legend items using legendData (has recalculated percentages for visible items)\n\tconst legendItems = useChartLegendItems( legendData, legendOptions );\n\n\tconst { isValid, message } = validateData( data );\n\n\t// Process children to extract compound components\n\tconst { svgChildren, htmlChildren, otherChildren } = useChartChildren( children, 'PieChart' );\n\n\t// Memoize metadata to prevent unnecessary re-registration\n\tconst chartMetadata = useMemo(\n\t\t() => ( {\n\t\t\tthickness,\n\t\t\tgapScale,\n\t\t\tcornerScale,\n\t\t} ),\n\t\t[ thickness, gapScale, cornerScale ]\n\t);\n\n\t// Register chart with context only if data is valid\n\tuseChartRegistration( {\n\t\tchartId,\n\t\tlegendItems,\n\t\tchartType: 'pie',\n\t\tisDataValid: isValid,\n\t\tmetadata: chartMetadata,\n\t} );\n\n\tif ( ! isValid ) {\n\t\treturn (\n\t\t\t<div className={ clsx( 'pie-chart', styles[ 'pie-chart' ], className ) }>\n\t\t\t\t<div className={ styles[ 'error-message' ] }>{ message }</div>\n\t\t\t</div>\n\t\t);\n\t}\n\n\tconst width = size;\n\tconst height = size;\n\tconst adjustedHeight = showLegend && legendPosition === 'top' ? height - legendHeight : height;\n\n\t// Calculate radius based on width/height\n\tconst radius = Math.min( width, adjustedHeight ) / 2;\n\n\t// Center the chart in the available space\n\tconst centerX = width / 2;\n\tconst centerY = adjustedHeight / 2;\n\n\t// Calculate the angle between each (use original data length for consistent spacing)\n\tconst padAngle = gapScale * ( ( 2 * Math.PI ) / data.length );\n\n\tconst outerRadius = radius - padding;\n\tconst innerRadius = thickness === 0 ? 0 : outerRadius * ( 1 - thickness );\n\n\tconst maxCornerRadius = ( outerRadius - innerRadius ) / 2;\n\tconst cornerRadius = cornerScale ? Math.min( cornerScale * outerRadius, maxCornerRadius ) : 0;\n\n\t// Map the data to include index for color assignment\n\t// When interactive, we need to find the original index to maintain consistent colors\n\tconst dataWithIndex = visibleData.map( d => {\n\t\tconst originalIndex = data.findIndex( item => item.label === d.label );\n\t\treturn {\n\t\t\t...d,\n\t\t\tindex: originalIndex >= 0 ? originalIndex : 0,\n\t\t};\n\t} );\n\n\tconst accessors = {\n\t\tvalue: ( d: DataPointPercentage ) => d.value,\n\t\tfill: ( d: DataPointPercentage & { index: number } ) => {\n\t\t\treturn getElementStyles( { data: d, index: d.index } ).color;\n\t\t},\n\t};\n\n\treturn (\n\t\t<SingleChartContext.Provider\n\t\t\tvalue={ {\n\t\t\t\tchartId,\n\t\t\t\tchartWidth: width,\n\t\t\t\tchartHeight: adjustedHeight,\n\t\t\t} }\n\t\t>\n\t\t\t<div\n\t\t\t\tref={ containerRef }\n\t\t\t\tclassName={ clsx( 'pie-chart', styles[ 'pie-chart' ], className ) }\n\t\t\t\tstyle={ {\n\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\tflexDirection: showLegend && legendPosition === 'top' ? 'column-reverse' : 'column',\n\t\t\t\t} }\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\tviewBox={ `0 0 ${ width } ${ adjustedHeight }` }\n\t\t\t\t\tpreserveAspectRatio=\"xMidYMid meet\"\n\t\t\t\t\twidth={ width }\n\t\t\t\t\theight={ adjustedHeight }\n\t\t\t\t>\n\t\t\t\t\t<Group top={ centerY } left={ centerX }>\n\t\t\t\t\t\t{ allSegmentsHidden ? (\n\t\t\t\t\t\t\t<text\n\t\t\t\t\t\t\t\ttextAnchor=\"middle\"\n\t\t\t\t\t\t\t\tdy=\".33em\"\n\t\t\t\t\t\t\t\tfill={ providerTheme.gridColor || '#ccc' }\n\t\t\t\t\t\t\t\tfontSize=\"14\"\n\t\t\t\t\t\t\t\tfontFamily=\"-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{ __(\n\t\t\t\t\t\t\t\t\t'All segments are hidden. Click legend items to show data.',\n\t\t\t\t\t\t\t\t\t'jetpack-charts'\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t</text>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<Pie< DataPointPercentage & { index: number } >\n\t\t\t\t\t\t\t\tdata={ dataWithIndex }\n\t\t\t\t\t\t\t\tpieValue={ accessors.value }\n\t\t\t\t\t\t\t\touterRadius={ outerRadius }\n\t\t\t\t\t\t\t\tinnerRadius={ innerRadius }\n\t\t\t\t\t\t\t\tpadAngle={ padAngle }\n\t\t\t\t\t\t\t\tcornerRadius={ cornerRadius }\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{ pie => {\n\t\t\t\t\t\t\t\t\treturn pie.arcs.map( ( arc, index ) => {\n\t\t\t\t\t\t\t\t\t\tconst [ centroidX, centroidY ] = pie.path.centroid( arc );\n\t\t\t\t\t\t\t\t\t\tconst hasSpaceForLabel = arc.endAngle - arc.startAngle >= 0.25;\n\t\t\t\t\t\t\t\t\t\tconst handleMouseMove = ( event: MouseEvent< SVGElement > ) => {\n\t\t\t\t\t\t\t\t\t\t\tif ( ! withTooltips ) {\n\t\t\t\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t// Get coordinates relative to the current target element\n\t\t\t\t\t\t\t\t\t\t\tconst coords = localPoint( event );\n\t\t\t\t\t\t\t\t\t\t\tif ( coords ) {\n\t\t\t\t\t\t\t\t\t\t\t\t// Account for legend offset when legend is on top\n\t\t\t\t\t\t\t\t\t\t\t\tconst legendOffset =\n\t\t\t\t\t\t\t\t\t\t\t\t\tshowLegend && legendPosition === 'top' ? legendHeight : 0;\n\t\t\t\t\t\t\t\t\t\t\t\tshowTooltip( {\n\t\t\t\t\t\t\t\t\t\t\t\t\ttooltipData: arc.data,\n\t\t\t\t\t\t\t\t\t\t\t\t\ttooltipLeft: coords.x + tooltipOffsetX,\n\t\t\t\t\t\t\t\t\t\t\t\t\ttooltipTop: coords.y + legendOffset + tooltipOffsetY,\n\t\t\t\t\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\t\t\t\tconst pathProps: SVGProps< SVGPathElement > & { 'data-testid'?: string } = {\n\t\t\t\t\t\t\t\t\t\t\td: pie.path( arc ) || '',\n\t\t\t\t\t\t\t\t\t\t\tfill: accessors.fill( arc.data ),\n\t\t\t\t\t\t\t\t\t\t\t'data-testid': 'pie-segment',\n\t\t\t\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\t\t\t\tconst groupProps: SVGProps< SVGGElement > = {};\n\t\t\t\t\t\t\t\t\t\tif ( withTooltips ) {\n\t\t\t\t\t\t\t\t\t\t\tgroupProps.onMouseMove = handleMouseMove;\n\t\t\t\t\t\t\t\t\t\t\tgroupProps.onMouseLeave = onMouseLeave;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t// Estimate text width more accurately for background sizing\n\t\t\t\t\t\t\t\t\t\tconst fontSize = 12;\n\t\t\t\t\t\t\t\t\t\tconst estimatedTextWidth = getStringWidth( arc.data.label, { fontSize } );\n\t\t\t\t\t\t\t\t\t\tconst labelPadding = 6;\n\t\t\t\t\t\t\t\t\t\tconst backgroundWidth = estimatedTextWidth + labelPadding * 2;\n\t\t\t\t\t\t\t\t\t\tconst backgroundHeight = fontSize + labelPadding * 2;\n\n\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t<g key={ `arc-${ index }` } { ...groupProps }>\n\t\t\t\t\t\t\t\t\t\t\t\t<path { ...pathProps } />\n\t\t\t\t\t\t\t\t\t\t\t\t{ showLabels && hasSpaceForLabel && (\n\t\t\t\t\t\t\t\t\t\t\t\t\t<g>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{ providerTheme.labelBackgroundColor && (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<rect\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tx={ centroidX - backgroundWidth / 2 }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ty={ centroidY - backgroundHeight / 2 }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth={ backgroundWidth }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\theight={ backgroundHeight }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfill={ providerTheme.labelBackgroundColor }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trx={ 4 }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\try={ 4 }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpointerEvents=\"none\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<text\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tx={ centroidX }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ty={ centroidY }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdy=\".33em\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfill={ providerTheme.labelTextColor || '#333' }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfontSize={ fontSize }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextAnchor=\"middle\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpointerEvents=\"none\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{ arc.data.label }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</text>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</g>\n\t\t\t\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t\t\t\t</g>\n\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t</Pie>\n\t\t\t\t\t\t) }\n\n\t\t\t\t\t\t{ /* Render SVG children (like Group, Text) inside the SVG */ }\n\t\t\t\t\t\t{ ! allSegmentsHidden && svgChildren }\n\t\t\t\t\t</Group>\n\t\t\t\t</svg>\n\n\t\t\t\t{ showLegend && (\n\t\t\t\t\t<Legend\n\t\t\t\t\t\torientation={ legendOrientation }\n\t\t\t\t\t\tposition={ legendPosition }\n\t\t\t\t\t\talignment={ legendAlignment }\n\t\t\t\t\t\tmaxWidth={ legendMaxWidth }\n\t\t\t\t\t\ttextOverflow={ legendTextOverflow }\n\t\t\t\t\t\tlegendItemClassName={ legendItemClassName }\n\t\t\t\t\t\tclassName={ styles[ 'pie-chart-legend' ] }\n\t\t\t\t\t\tshape={ legendShape }\n\t\t\t\t\t\tref={ legendRef }\n\t\t\t\t\t\tchartId={ chartId }\n\t\t\t\t\t\tinteractive={ legendInteractive }\n\t\t\t\t\t/>\n\t\t\t\t) }\n\n\t\t\t\t{ withTooltips && tooltipOpen && tooltipData && (\n\t\t\t\t\t<TooltipInPortal top={ tooltipTop || 0 } left={ tooltipLeft || 0 }>\n\t\t\t\t\t\t<div role=\"tooltip\">\n\t\t\t\t\t\t\t<BaseTooltip data={ tooltipData } top={ 0 } left={ 0 } renderContainer={ false } />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</TooltipInPortal>\n\t\t\t\t) }\n\n\t\t\t\t{ /* Render HTML component children from PieChart.HTML */ }\n\t\t\t\t{ htmlChildren }\n\n\t\t\t\t{ /* Render other React children for backward compatibility */ }\n\t\t\t\t{ otherChildren }\n\t\t\t</div>\n\t\t</SingleChartContext.Provider>\n\t);\n};\n\nconst PieChartWithProvider: FC< PieChartProps > = props => {\n\tconst existingContext = useContext( GlobalChartsContext );\n\n\t// If we're already in a GlobalChartsProvider context, don't create a new one\n\tif ( existingContext ) {\n\t\treturn <PieChartInternal { ...props } />;\n\t}\n\n\t// Otherwise, create our own GlobalChartsProvider\n\treturn (\n\t\t<GlobalChartsProvider>\n\t\t\t<PieChartInternal { ...props } />\n\t\t</GlobalChartsProvider>\n\t);\n};\n\nPieChartWithProvider.displayName = 'PieChart';\n\n// Create PieChart with composition API\nconst PieChart = attachSubComponents( PieChartWithProvider, {\n\tLegend: Legend,\n\tSVG: ChartSVG,\n\tHTML: ChartHTML,\n} ) as PieChartComponent;\n\n// Create responsive PieChart with composition API\nconst PieChartResponsive = attachSubComponents(\n\twithResponsive< PieChartProps >( PieChartWithProvider ),\n\t{\n\t\tLegend: Legend,\n\t\tSVG: ChartSVG,\n\t\tHTML: ChartHTML,\n\t}\n) as PieChartResponsiveComponent;\n\nexport { PieChartResponsive as default, PieChart as PieChartUnresponsive };\n","import 'css-chunk:src/components/pie-chart/pie-chart.module.scss';export default {\n \"pie-chart\": \"a8ccharts-R12VhH\"\n};"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,kBAAkB;AAC3B,SAAS,aAAa;AACtB,SAAS,WAAW;AACpB,SAAS,YAAY,0BAA0B;AAC/C,SAAS,UAAU;AACnB,OAAO,UAAU;AACjB,SAAS,aAAa,YAAY,eAAe;;;ACNiB,IAAO,2BAAQ;AAAA,EAC/E,aAAa;AACf;;;ADkOI,cAqIS,YArIT;AAtHJ,IAAM,eAAe,CAAE,SAAiC;AACvD,MAAK,CAAE,KAAK,QAAS;AACpB,WAAO,EAAE,SAAS,OAAO,SAAS,oBAAoB;AAAA,EACvD;AAGA,QAAM,oBAAoB,KAAK,KAAM,UAAQ,KAAK,aAAa,KAAK,KAAK,QAAQ,CAAE;AACnF,MAAK,mBAAoB;AACxB,WAAO,EAAE,SAAS,OAAO,SAAS,gDAAgD;AAAA,EACnF;AAGA,QAAM,kBAAkB,KAAK,OAAQ,CAAE,KAAK,SAAU,MAAM,KAAK,YAAY,CAAE;AAC/E,MAAK,KAAK,IAAK,kBAAkB,GAAI,IAAI,MAAO;AAE/C,WAAO,EAAE,SAAS,OAAO,SAAS,2CAA2C;AAAA,EAC9E;AAEA,SAAO,EAAE,SAAS,MAAM,SAAS,GAAG;AACrC;AAQA,IAAM,mBAAmB,CAAE;AAAA,EAC1B;AAAA,EACA,SAAS;AAAA,EACT,eAAe;AAAA,EACf;AAAA,EACA,aAAa;AAAA,EACb,oBAAoB;AAAA,EACpB,iBAAiB;AAAA,EACjB,kBAAkB;AAAA,EAClB;AAAA,EACA,qBAAqB;AAAA,EACrB;AAAA,EACA,cAAc;AAAA,EACd;AAAA,EACA,YAAY;AAAA,EACZ,UAAU;AAAA,E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eAAe,eAChC,oBAAC,mBAAgB,KAAM,cAAc,GAAI,MAAO,eAAe,GAC9D,8BAAC,SAAI,MAAK,WACT,8BAAC,eAAY,MAAO,aAAc,KAAM,GAAI,MAAO,GAAI,iBAAkB,OAAQ,GAClF,GACD;AAAA,YAIC;AAAA,YAGA;AAAA;AAAA;AAAA,MACH;AAAA;AAAA,EACD;AAEF;AAEA,IAAM,uBAA4C,WAAS;AAC1D,QAAM,kBAAkB,WAAY,mBAAoB;AAGxD,MAAK,iBAAkB;AACtB,WAAO,oBAAC,oBAAmB,GAAG,OAAQ;AAAA,EACvC;AAGA,SACC,oBAAC,wBACA,8BAAC,oBAAmB,GAAG,OAAQ,GAChC;AAEF;AAEA,qBAAqB,cAAc;AAGnC,IAAM,WAAW,oBAAqB,sBAAsB;AAAA,EAC3D;AAAA,EACA,KAAK;AAAA,EACL,MAAM;AACP,CAAE;AAGF,IAAM,qBAAqB;AAAA,EAC1B,eAAiC,oBAAqB;AAAA,EACtD;AAAA,IACC;AAAA,IACA,KAAK;AAAA,IACL,MAAM;AAAA,EACP;AACD;","names":[]}
@@ -1,14 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkBZ6UDD37cjs = require('../../chunk-BZ6UDD37.cjs');
4
+ var _chunkCNAKHZMWcjs = require('../../chunk-CNAKHZMW.cjs');
5
5
  require('../../chunk-6GO5PFYL.cjs');
6
6
  require('../../chunk-FX2PTUFC.cjs');
7
- require('../../chunk-GK3XEXVI.cjs');
8
- require('../../chunk-2HUX2CAT.cjs');
7
+ require('../../chunk-PNSMPZ3E.cjs');
8
+ require('../../chunk-LSGYIUQX.cjs');
9
9
  require('../../chunk-EMMSS5I5.cjs');
10
10
 
11
11
 
12
12
 
13
- exports.BarChart = _chunkBZ6UDD37cjs.BarChartResponsive; exports.BarChartUnresponsive = _chunkBZ6UDD37cjs.BarChart;
13
+ exports.BarChart = _chunkCNAKHZMWcjs.BarChartResponsive; exports.BarChartUnresponsive = _chunkCNAKHZMWcjs.BarChart;
14
14
  //# sourceMappingURL=index.cjs.map
@@ -1,5 +1,5 @@
1
1
  import { L as Legend } from '../../legend-C9ahiwOt.cjs';
2
- import { O as Optional, B as BaseChartProps, c as SeriesData, b as DataPointDate } from '../../types-cEbX_Q2K.cjs';
2
+ import { O as Optional, B as BaseChartProps, c as SeriesData, b as DataPointDate } from '../../types-73KOEWs9.cjs';
3
3
  import { FC, ReactNode, ComponentType } from 'react';
4
4
  import { R as ResponsiveConfig } from '../../with-responsive-Cp2qnQPo.cjs';
5
5
  import { RenderTooltipParams } from '@visx/xychart/lib/components/Tooltip';
@@ -20,6 +20,7 @@ interface BarChartProps extends BaseChartProps<SeriesData[]> {
20
20
  orientation?: 'horizontal' | 'vertical';
21
21
  withPatterns?: boolean;
22
22
  showZeroValues?: boolean;
23
+ legendInteractive?: boolean;
23
24
  children?: ReactNode;
24
25
  }
25
26
  type BarChartBaseProps = Optional<BarChartProps, 'width' | 'height' | 'size'>;
@@ -1,5 +1,5 @@
1
1
  import { L as Legend } from '../../legend-jjMmhSg3.js';
2
- import { O as Optional, B as BaseChartProps, c as SeriesData, b as DataPointDate } from '../../types-cEbX_Q2K.js';
2
+ import { O as Optional, B as BaseChartProps, c as SeriesData, b as DataPointDate } from '../../types-73KOEWs9.js';
3
3
  import { FC, ReactNode, ComponentType } from 'react';
4
4
  import { R as ResponsiveConfig } from '../../with-responsive-Cp2qnQPo.js';
5
5
  import { RenderTooltipParams } from '@visx/xychart/lib/components/Tooltip';
@@ -20,6 +20,7 @@ interface BarChartProps extends BaseChartProps<SeriesData[]> {
20
20
  orientation?: 'horizontal' | 'vertical';
21
21
  withPatterns?: boolean;
22
22
  showZeroValues?: boolean;
23
+ legendInteractive?: boolean;
23
24
  children?: ReactNode;
24
25
  }
25
26
  type BarChartBaseProps = Optional<BarChartProps, 'width' | 'height' | 'size'>;
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  BarChart,
3
3
  BarChartResponsive
4
- } from "../../chunk-KM62I6SD.js";
4
+ } from "../../chunk-HVWETEEV.js";
5
5
  import "../../chunk-W5KOH3TV.js";
6
6
  import "../../chunk-TYYW4BG3.js";
7
- import "../../chunk-Q2LDRQN7.js";
8
- import "../../chunk-3O6FHD2T.js";
7
+ import "../../chunk-PFT2X4OW.js";
8
+ import "../../chunk-A3PGOCJO.js";
9
9
  import "../../chunk-G3PMV62Z.js";
10
10
  export {
11
11
  BarChartResponsive as BarChart,
@@ -1,15 +1,15 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkUHESRL2Fcjs = require('../../chunk-UHESRL2F.cjs');
5
- require('../../chunk-BZ6UDD37.cjs');
4
+ var _chunkN36WJKYMcjs = require('../../chunk-N36WJKYM.cjs');
5
+ require('../../chunk-CNAKHZMW.cjs');
6
6
  require('../../chunk-6GO5PFYL.cjs');
7
7
  require('../../chunk-FX2PTUFC.cjs');
8
- require('../../chunk-GK3XEXVI.cjs');
9
- require('../../chunk-2HUX2CAT.cjs');
8
+ require('../../chunk-PNSMPZ3E.cjs');
9
+ require('../../chunk-LSGYIUQX.cjs');
10
10
  require('../../chunk-EMMSS5I5.cjs');
11
11
 
12
12
 
13
13
 
14
- exports.BarListChart = _chunkUHESRL2Fcjs.BarListChartResponsive; exports.BarListChartUnresponsive = _chunkUHESRL2Fcjs.BarListChart;
14
+ exports.BarListChart = _chunkN36WJKYMcjs.BarListChartResponsive; exports.BarListChartUnresponsive = _chunkN36WJKYMcjs.BarListChart;
15
15
  //# sourceMappingURL=index.cjs.map
@@ -3,7 +3,7 @@ import { R as ResponsiveConfig } from '../../with-responsive-Cp2qnQPo.cjs';
3
3
  import { TextProps } from '@visx/text';
4
4
  import { BarChartProps } from '../bar-chart/index.cjs';
5
5
  import { ComponentType, FC } from 'react';
6
- import { f as ScaleOptions, c as SeriesData } from '../../types-cEbX_Q2K.cjs';
6
+ import { f as ScaleOptions, c as SeriesData } from '../../types-73KOEWs9.cjs';
7
7
  import '../../legend-C9ahiwOt.cjs';
8
8
  import '../../types-C05PdDJa.cjs';
9
9
  import '@visx/legend';
@@ -3,7 +3,7 @@ import { R as ResponsiveConfig } from '../../with-responsive-Cp2qnQPo.js';
3
3
  import { TextProps } from '@visx/text';
4
4
  import { BarChartProps } from '../bar-chart/index.js';
5
5
  import { ComponentType, FC } from 'react';
6
- import { f as ScaleOptions, c as SeriesData } from '../../types-cEbX_Q2K.js';
6
+ import { f as ScaleOptions, c as SeriesData } from '../../types-73KOEWs9.js';
7
7
  import '../../legend-jjMmhSg3.js';
8
8
  import '../../types-C05PdDJa.js';
9
9
  import '@visx/legend';
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  BarListChart,
3
3
  BarListChartResponsive
4
- } from "../../chunk-W5RFMC3A.js";
5
- import "../../chunk-KM62I6SD.js";
4
+ } from "../../chunk-JI6OGGGF.js";
5
+ import "../../chunk-HVWETEEV.js";
6
6
  import "../../chunk-W5KOH3TV.js";
7
7
  import "../../chunk-TYYW4BG3.js";
8
- import "../../chunk-Q2LDRQN7.js";
9
- import "../../chunk-3O6FHD2T.js";
8
+ import "../../chunk-PFT2X4OW.js";
9
+ import "../../chunk-A3PGOCJO.js";
10
10
  import "../../chunk-G3PMV62Z.js";
11
11
  export {
12
12
  BarListChartResponsive as BarListChart,
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkSC462VDMcjs = require('../../chunk-SC462VDM.cjs');
4
- require('../../chunk-2HUX2CAT.cjs');
3
+ var _chunkQPHNEQCKcjs = require('../../chunk-QPHNEQCK.cjs');
4
+ require('../../chunk-LSGYIUQX.cjs');
5
5
  require('../../chunk-EMMSS5I5.cjs');
6
6
 
7
7
 
8
- exports.ConversionFunnelChart = _chunkSC462VDMcjs.ConversionFunnelChartWithProvider;
8
+ exports.ConversionFunnelChart = _chunkQPHNEQCKcjs.ConversionFunnelChartWithProvider;
9
9
  //# sourceMappingURL=index.cjs.map
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { B as BaseChartProps } from '../../types-cEbX_Q2K.cjs';
2
+ import { B as BaseChartProps } from '../../types-73KOEWs9.cjs';
3
3
  import '@visx/annotation/lib/components/CircleSubject';
4
4
  import '@visx/annotation/lib/components/Connector';
5
5
  import '@visx/annotation/lib/components/Label';
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { B as BaseChartProps } from '../../types-cEbX_Q2K.js';
2
+ import { B as BaseChartProps } from '../../types-73KOEWs9.js';
3
3
  import '@visx/annotation/lib/components/CircleSubject';
4
4
  import '@visx/annotation/lib/components/Connector';
5
5
  import '@visx/annotation/lib/components/Label';
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ConversionFunnelChartWithProvider
3
- } from "../../chunk-SHADFB3T.js";
4
- import "../../chunk-3O6FHD2T.js";
3
+ } from "../../chunk-KEBKTDOQ.js";
4
+ import "../../chunk-A3PGOCJO.js";
5
5
  import "../../chunk-G3PMV62Z.js";
6
6
  export {
7
7
  ConversionFunnelChartWithProvider as ConversionFunnelChart
@@ -2,18 +2,18 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkG4FX5I3Vcjs = require('../../chunk-G4FX5I3V.cjs');
5
+ var _chunkEPHDZVIGcjs = require('../../chunk-EPHDZVIG.cjs');
6
6
  require('../../chunk-3Z526IL2.cjs');
7
7
  require('../../chunk-FX2PTUFC.cjs');
8
- require('../../chunk-GK3XEXVI.cjs');
8
+ require('../../chunk-PNSMPZ3E.cjs');
9
9
 
10
10
 
11
- var _chunk2HUX2CATcjs = require('../../chunk-2HUX2CAT.cjs');
11
+ var _chunkLSGYIUQXcjs = require('../../chunk-LSGYIUQX.cjs');
12
12
  require('../../chunk-EMMSS5I5.cjs');
13
13
 
14
14
 
15
15
 
16
16
 
17
17
 
18
- exports.LeaderboardChart = _chunkG4FX5I3Vcjs.LeaderboardChartResponsive; exports.LeaderboardChartUnresponsive = _chunkG4FX5I3Vcjs.LeaderboardChart; exports.formatMetricValue = _chunk2HUX2CATcjs.formatMetricValue; exports.useLeaderboardLegendItems = _chunkG4FX5I3Vcjs.useLeaderboardLegendItems;
18
+ exports.LeaderboardChart = _chunkEPHDZVIGcjs.LeaderboardChartResponsive; exports.LeaderboardChartUnresponsive = _chunkEPHDZVIGcjs.LeaderboardChart; exports.formatMetricValue = _chunkLSGYIUQXcjs.formatMetricValue; exports.useLeaderboardLegendItems = _chunkEPHDZVIGcjs.useLeaderboardLegendItems;
19
19
  //# sourceMappingURL=index.cjs.map
@@ -1,5 +1,5 @@
1
- export { L as LeaderboardChart, b as LeaderboardChartProps, a as LeaderboardChartUnresponsive } from '../../leaderboard-chart-BWEheWCd.cjs';
2
- import { L as LeaderboardEntry } from '../../types-cEbX_Q2K.cjs';
1
+ export { L as LeaderboardChart, b as LeaderboardChartProps, a as LeaderboardChartUnresponsive } from '../../leaderboard-chart-DOaY0V1U.cjs';
2
+ import { L as LeaderboardEntry } from '../../types-73KOEWs9.cjs';
3
3
  import { B as BaseLegendItem } from '../../types-C05PdDJa.cjs';
4
4
  import 'react/jsx-runtime';
5
5
  import '../../with-responsive-Cp2qnQPo.cjs';
@@ -1,5 +1,5 @@
1
- export { L as LeaderboardChart, b as LeaderboardChartProps, a as LeaderboardChartUnresponsive } from '../../leaderboard-chart-rqyTz1m6.js';
2
- import { L as LeaderboardEntry } from '../../types-cEbX_Q2K.js';
1
+ export { L as LeaderboardChart, b as LeaderboardChartProps, a as LeaderboardChartUnresponsive } from '../../leaderboard-chart-Cpg_k_Vg.js';
2
+ import { L as LeaderboardEntry } from '../../types-73KOEWs9.js';
3
3
  import { B as BaseLegendItem } from '../../types-C05PdDJa.js';
4
4
  import 'react/jsx-runtime';
5
5
  import '../../with-responsive-Cp2qnQPo.js';
@@ -2,13 +2,13 @@ import {
2
2
  LeaderboardChart,
3
3
  LeaderboardChartResponsive,
4
4
  useLeaderboardLegendItems
5
- } from "../../chunk-2HB55BRH.js";
5
+ } from "../../chunk-VM3CHO3G.js";
6
6
  import "../../chunk-D3DZT2EK.js";
7
7
  import "../../chunk-TYYW4BG3.js";
8
- import "../../chunk-Q2LDRQN7.js";
8
+ import "../../chunk-PFT2X4OW.js";
9
9
  import {
10
10
  formatMetricValue
11
- } from "../../chunk-3O6FHD2T.js";
11
+ } from "../../chunk-A3PGOCJO.js";
12
12
  import "../../chunk-G3PMV62Z.js";
13
13
  export {
14
14
  LeaderboardChartResponsive as LeaderboardChart,
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkGK3XEXVIcjs = require('../../chunk-GK3XEXVI.cjs');
5
- require('../../chunk-2HUX2CAT.cjs');
4
+ var _chunkPNSMPZ3Ecjs = require('../../chunk-PNSMPZ3E.cjs');
5
+ require('../../chunk-LSGYIUQX.cjs');
6
6
  require('../../chunk-EMMSS5I5.cjs');
7
7
 
8
8
 
9
9
 
10
- exports.Legend = _chunkGK3XEXVIcjs.Legend; exports.useChartLegendItems = _chunkGK3XEXVIcjs.useChartLegendItems;
10
+ exports.Legend = _chunkPNSMPZ3Ecjs.Legend; exports.useChartLegendItems = _chunkPNSMPZ3Ecjs.useChartLegendItems;
11
11
  //# sourceMappingURL=index.cjs.map
@@ -1,5 +1,5 @@
1
1
  export { L as Legend } from '../../legend-C9ahiwOt.cjs';
2
- import { c as SeriesData, b as DataPointDate, d as DataPointPercentage } from '../../types-cEbX_Q2K.cjs';
2
+ import { c as SeriesData, b as DataPointDate, d as DataPointPercentage } from '../../types-73KOEWs9.cjs';
3
3
  import { B as BaseLegendItem } from '../../types-C05PdDJa.cjs';
4
4
  export { a as BaseLegendProps, L as LegendProps } from '../../types-C05PdDJa.cjs';
5
5
  import { LegendShape } from '@visx/legend/lib/types';
@@ -1,5 +1,5 @@
1
1
  export { L as Legend } from '../../legend-jjMmhSg3.js';
2
- import { c as SeriesData, b as DataPointDate, d as DataPointPercentage } from '../../types-cEbX_Q2K.js';
2
+ import { c as SeriesData, b as DataPointDate, d as DataPointPercentage } from '../../types-73KOEWs9.js';
3
3
  import { B as BaseLegendItem } from '../../types-C05PdDJa.js';
4
4
  export { a as BaseLegendProps, L as LegendProps } from '../../types-C05PdDJa.js';
5
5
  import { LegendShape } from '@visx/legend/lib/types';
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Legend,
3
3
  useChartLegendItems
4
- } from "../../chunk-Q2LDRQN7.js";
5
- import "../../chunk-3O6FHD2T.js";
4
+ } from "../../chunk-PFT2X4OW.js";
5
+ import "../../chunk-A3PGOCJO.js";
6
6
  import "../../chunk-G3PMV62Z.js";
7
7
  export {
8
8
  Legend,
@@ -1,14 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkMAV6SE6Lcjs = require('../../chunk-MAV6SE6L.cjs');
4
+ var _chunkGEB4GELEcjs = require('../../chunk-GEB4GELE.cjs');
5
5
  require('../../chunk-6GO5PFYL.cjs');
6
6
  require('../../chunk-FX2PTUFC.cjs');
7
- require('../../chunk-GK3XEXVI.cjs');
8
- require('../../chunk-2HUX2CAT.cjs');
7
+ require('../../chunk-PNSMPZ3E.cjs');
8
+ require('../../chunk-LSGYIUQX.cjs');
9
9
  require('../../chunk-EMMSS5I5.cjs');
10
10
 
11
11
 
12
12
 
13
- exports.LineChart = _chunkMAV6SE6Lcjs.LineChartResponsive; exports.LineChartUnresponsive = _chunkMAV6SE6Lcjs.LineChart;
13
+ exports.LineChart = _chunkGEB4GELEcjs.LineChartResponsive; exports.LineChartUnresponsive = _chunkGEB4GELEcjs.LineChart;
14
14
  //# sourceMappingURL=index.cjs.map
@@ -1,5 +1,5 @@
1
1
  import { L as Legend } from '../../legend-C9ahiwOt.cjs';
2
- import { B as BaseChartProps, c as SeriesData, b as DataPointDate, A as AnnotationStyles, O as Optional } from '../../types-cEbX_Q2K.cjs';
2
+ import { B as BaseChartProps, c as SeriesData, b as DataPointDate, A as AnnotationStyles, O as Optional } from '../../types-73KOEWs9.cjs';
3
3
  import { FC, ReactNode, SVGProps } from 'react';
4
4
  import { GlyphProps } from '@visx/xychart';
5
5
  import { RenderTooltipParams } from '@visx/xychart/lib/components/Tooltip';
@@ -1,5 +1,5 @@
1
1
  import { L as Legend } from '../../legend-jjMmhSg3.js';
2
- import { B as BaseChartProps, c as SeriesData, b as DataPointDate, A as AnnotationStyles, O as Optional } from '../../types-cEbX_Q2K.js';
2
+ import { B as BaseChartProps, c as SeriesData, b as DataPointDate, A as AnnotationStyles, O as Optional } from '../../types-73KOEWs9.js';
3
3
  import { FC, ReactNode, SVGProps } from 'react';
4
4
  import { GlyphProps } from '@visx/xychart';
5
5
  import { RenderTooltipParams } from '@visx/xychart/lib/components/Tooltip';
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  LineChart,
3
3
  LineChartResponsive
4
- } from "../../chunk-HYHBAHIU.js";
4
+ } from "../../chunk-JGX3ZNK5.js";
5
5
  import "../../chunk-W5KOH3TV.js";
6
6
  import "../../chunk-TYYW4BG3.js";
7
- import "../../chunk-Q2LDRQN7.js";
8
- import "../../chunk-3O6FHD2T.js";
7
+ import "../../chunk-PFT2X4OW.js";
8
+ import "../../chunk-A3PGOCJO.js";
9
9
  import "../../chunk-G3PMV62Z.js";
10
10
  export {
11
11
  LineChartResponsive as LineChart,
@@ -1,16 +1,16 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkQLLKOSJ6cjs = require('../../chunk-QLLKOSJ6.cjs');
4
+ var _chunkYKVKFUV7cjs = require('../../chunk-YKVKFUV7.cjs');
5
5
  require('../../chunk-7OZEQ5HE.cjs');
6
6
  require('../../chunk-6GO5PFYL.cjs');
7
7
  require('../../chunk-3Z526IL2.cjs');
8
8
  require('../../chunk-FX2PTUFC.cjs');
9
- require('../../chunk-GK3XEXVI.cjs');
10
- require('../../chunk-2HUX2CAT.cjs');
9
+ require('../../chunk-PNSMPZ3E.cjs');
10
+ require('../../chunk-LSGYIUQX.cjs');
11
11
  require('../../chunk-EMMSS5I5.cjs');
12
12
 
13
13
 
14
14
 
15
- exports.PieChart = _chunkQLLKOSJ6cjs.PieChartResponsive; exports.PieChartUnresponsive = _chunkQLLKOSJ6cjs.PieChart;
15
+ exports.PieChart = _chunkYKVKFUV7cjs.PieChartResponsive; exports.PieChartUnresponsive = _chunkYKVKFUV7cjs.PieChart;
16
16
  //# sourceMappingURL=index.cjs.map
@@ -1,5 +1,5 @@
1
1
  import { R as ResponsiveConfig } from '../../with-responsive-Cp2qnQPo.cjs';
2
- import { O as Optional, B as BaseChartProps, d as DataPointPercentage } from '../../types-cEbX_Q2K.cjs';
2
+ import { O as Optional, B as BaseChartProps, d as DataPointPercentage } from '../../types-73KOEWs9.cjs';
3
3
  import { ReactNode } from 'react';
4
4
  import { LegendValueDisplay } from '../legend/index.cjs';
5
5
  import { C as ChartComponentWithComposition } from '../../types-BBwg4Evw.cjs';
@@ -53,6 +53,12 @@ interface PieChartProps extends BaseChartProps<DataPointPercentage[]> {
53
53
  * - 'none': Shows no values, only labels
54
54
  */
55
55
  legendValueDisplay?: LegendValueDisplay;
56
+ /**
57
+ * Enable interactive legend items that can toggle segment visibility.
58
+ * Requires chartId and GlobalChartsProvider.
59
+ * When segments are hidden, percentages are recalculated so visible segments total 100%.
60
+ */
61
+ legendInteractive?: boolean;
56
62
  /**
57
63
  * Use the children prop to render additional elements on the chart.
58
64
  */
@@ -1,5 +1,5 @@
1
1
  import { R as ResponsiveConfig } from '../../with-responsive-Cp2qnQPo.js';
2
- import { O as Optional, B as BaseChartProps, d as DataPointPercentage } from '../../types-cEbX_Q2K.js';
2
+ import { O as Optional, B as BaseChartProps, d as DataPointPercentage } from '../../types-73KOEWs9.js';
3
3
  import { ReactNode } from 'react';
4
4
  import { LegendValueDisplay } from '../legend/index.js';
5
5
  import { C as ChartComponentWithComposition } from '../../types-DQNnq5Fr.js';
@@ -53,6 +53,12 @@ interface PieChartProps extends BaseChartProps<DataPointPercentage[]> {
53
53
  * - 'none': Shows no values, only labels
54
54
  */
55
55
  legendValueDisplay?: LegendValueDisplay;
56
+ /**
57
+ * Enable interactive legend items that can toggle segment visibility.
58
+ * Requires chartId and GlobalChartsProvider.
59
+ * When segments are hidden, percentages are recalculated so visible segments total 100%.
60
+ */
61
+ legendInteractive?: boolean;
56
62
  /**
57
63
  * Use the children prop to render additional elements on the chart.
58
64
  */
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  PieChart,
3
3
  PieChartResponsive
4
- } from "../../chunk-XDIWMJZD.js";
4
+ } from "../../chunk-ZSNO2BYX.js";
5
5
  import "../../chunk-NFRB2POF.js";
6
6
  import "../../chunk-W5KOH3TV.js";
7
7
  import "../../chunk-D3DZT2EK.js";
8
8
  import "../../chunk-TYYW4BG3.js";
9
- import "../../chunk-Q2LDRQN7.js";
10
- import "../../chunk-3O6FHD2T.js";
9
+ import "../../chunk-PFT2X4OW.js";
10
+ import "../../chunk-A3PGOCJO.js";
11
11
  import "../../chunk-G3PMV62Z.js";
12
12
  export {
13
13
  PieChartResponsive as PieChart,
@@ -1,15 +1,15 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkZA7OWPY7cjs = require('../../chunk-ZA7OWPY7.cjs');
4
+ var _chunkVOMSG7KVcjs = require('../../chunk-VOMSG7KV.cjs');
5
5
  require('../../chunk-6GO5PFYL.cjs');
6
6
  require('../../chunk-3Z526IL2.cjs');
7
7
  require('../../chunk-FX2PTUFC.cjs');
8
- require('../../chunk-GK3XEXVI.cjs');
9
- require('../../chunk-2HUX2CAT.cjs');
8
+ require('../../chunk-PNSMPZ3E.cjs');
9
+ require('../../chunk-LSGYIUQX.cjs');
10
10
  require('../../chunk-EMMSS5I5.cjs');
11
11
 
12
12
 
13
13
 
14
- exports.PieSemiCircleChart = _chunkZA7OWPY7cjs.PieSemiCircleChartResponsive; exports.PieSemiCircleChartUnresponsive = _chunkZA7OWPY7cjs.PieSemiCircleChart;
14
+ exports.PieSemiCircleChart = _chunkVOMSG7KVcjs.PieSemiCircleChartResponsive; exports.PieSemiCircleChartUnresponsive = _chunkVOMSG7KVcjs.PieSemiCircleChart;
15
15
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
- import { O as Optional, B as BaseChartProps, d as DataPointPercentage } from '../../types-cEbX_Q2K.cjs';
1
+ import { O as Optional, B as BaseChartProps, d as DataPointPercentage } from '../../types-73KOEWs9.cjs';
2
2
  import { ReactNode } from 'react';
3
3
  import { LegendValueDisplay } from '../legend/index.cjs';
4
4
  import { C as ChartComponentWithComposition } from '../../types-BBwg4Evw.cjs';
@@ -51,6 +51,12 @@ interface PieSemiCircleChartProps extends BaseChartProps<DataPointPercentage[]>
51
51
  * - 'none': Shows no values, only labels
52
52
  */
53
53
  legendValueDisplay?: LegendValueDisplay;
54
+ /**
55
+ * Enable interactive legend items that can toggle segment visibility.
56
+ * Requires chartId and GlobalChartsProvider.
57
+ * When segments are hidden, percentages are recalculated so visible segments total 100%.
58
+ */
59
+ legendInteractive?: boolean;
54
60
  /**
55
61
  * Horizontal offset for tooltip positioning in pixels (default: 0)
56
62
  */
@@ -1,4 +1,4 @@
1
- import { O as Optional, B as BaseChartProps, d as DataPointPercentage } from '../../types-cEbX_Q2K.js';
1
+ import { O as Optional, B as BaseChartProps, d as DataPointPercentage } from '../../types-73KOEWs9.js';
2
2
  import { ReactNode } from 'react';
3
3
  import { LegendValueDisplay } from '../legend/index.js';
4
4
  import { C as ChartComponentWithComposition } from '../../types-DQNnq5Fr.js';
@@ -51,6 +51,12 @@ interface PieSemiCircleChartProps extends BaseChartProps<DataPointPercentage[]>
51
51
  * - 'none': Shows no values, only labels
52
52
  */
53
53
  legendValueDisplay?: LegendValueDisplay;
54
+ /**
55
+ * Enable interactive legend items that can toggle segment visibility.
56
+ * Requires chartId and GlobalChartsProvider.
57
+ * When segments are hidden, percentages are recalculated so visible segments total 100%.
58
+ */
59
+ legendInteractive?: boolean;
54
60
  /**
55
61
  * Horizontal offset for tooltip positioning in pixels (default: 0)
56
62
  */
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  PieSemiCircleChart,
3
3
  PieSemiCircleChartResponsive
4
- } from "../../chunk-G66WE3ON.js";
4
+ } from "../../chunk-BWEMZ72V.js";
5
5
  import "../../chunk-W5KOH3TV.js";
6
6
  import "../../chunk-D3DZT2EK.js";
7
7
  import "../../chunk-TYYW4BG3.js";
8
- import "../../chunk-Q2LDRQN7.js";
9
- import "../../chunk-3O6FHD2T.js";
8
+ import "../../chunk-PFT2X4OW.js";
9
+ import "../../chunk-A3PGOCJO.js";
10
10
  import "../../chunk-G3PMV62Z.js";
11
11
  export {
12
12
  PieSemiCircleChartResponsive as PieSemiCircleChart,
@@ -1,5 +1,5 @@
1
1
  export { B as BaseTooltip, a as BaseTooltipProps, T as TooltipData } from '../../base-tooltip-DOq93wjU.cjs';
2
- import { b as DataPointDate, c as SeriesData } from '../../types-cEbX_Q2K.cjs';
2
+ import { b as DataPointDate, c as SeriesData } from '../../types-73KOEWs9.cjs';
3
3
  import { TooltipProps as TooltipProps$1, RenderTooltipParams } from '@visx/xychart/lib/components/Tooltip';
4
4
  import { ReactNode } from 'react';
5
5
  import 'react/jsx-runtime';
@@ -1,5 +1,5 @@
1
1
  export { B as BaseTooltip, a as BaseTooltipProps, T as TooltipData } from '../../base-tooltip-DOq93wjU.js';
2
- import { b as DataPointDate, c as SeriesData } from '../../types-cEbX_Q2K.js';
2
+ import { b as DataPointDate, c as SeriesData } from '../../types-73KOEWs9.js';
3
3
  import { TooltipProps as TooltipProps$1, RenderTooltipParams } from '@visx/xychart/lib/components/Tooltip';
4
4
  import { ReactNode } from 'react';
5
5
  import 'react/jsx-runtime';
@@ -7,7 +7,8 @@
7
7
 
8
8
 
9
9
 
10
- var _chunk2HUX2CATcjs = require('../chunk-2HUX2CAT.cjs');
10
+
11
+ var _chunkLSGYIUQXcjs = require('../chunk-LSGYIUQX.cjs');
11
12
  require('../chunk-EMMSS5I5.cjs');
12
13
 
13
14
 
@@ -18,5 +19,6 @@ require('../chunk-EMMSS5I5.cjs');
18
19
 
19
20
 
20
21
 
21
- exports.useChartDataTransform = _chunk2HUX2CATcjs.useChartDataTransform; exports.useChartMargin = _chunk2HUX2CATcjs.useChartMargin; exports.useChartMouseHandler = _chunk2HUX2CATcjs.useChartMouseHandler; exports.useDeepMemo = _chunk2HUX2CATcjs.useDeepMemo; exports.useElementHeight = _chunk2HUX2CATcjs.useElementHeight; exports.useTextTruncation = _chunk2HUX2CATcjs.useTextTruncation; exports.useXYChartTheme = _chunk2HUX2CATcjs.useXYChartTheme; exports.useZeroValueDisplay = _chunk2HUX2CATcjs.useZeroValueDisplay;
22
+
23
+ exports.useChartDataTransform = _chunkLSGYIUQXcjs.useChartDataTransform; exports.useChartMargin = _chunkLSGYIUQXcjs.useChartMargin; exports.useChartMouseHandler = _chunkLSGYIUQXcjs.useChartMouseHandler; exports.useDeepMemo = _chunkLSGYIUQXcjs.useDeepMemo; exports.useElementHeight = _chunkLSGYIUQXcjs.useElementHeight; exports.useInteractiveLegendData = _chunkLSGYIUQXcjs.useInteractiveLegendData; exports.useTextTruncation = _chunkLSGYIUQXcjs.useTextTruncation; exports.useXYChartTheme = _chunkLSGYIUQXcjs.useXYChartTheme; exports.useZeroValueDisplay = _chunkLSGYIUQXcjs.useZeroValueDisplay;
22
24
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/jetpack/jetpack/projects/js-packages/charts/dist/hooks/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,igBAAC","file":"/home/runner/work/jetpack/jetpack/projects/js-packages/charts/dist/hooks/index.cjs"}
1
+ {"version":3,"sources":["/home/runner/work/jetpack/jetpack/projects/js-packages/charts/dist/hooks/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,glBAAC","file":"/home/runner/work/jetpack/jetpack/projects/js-packages/charts/dist/hooks/index.cjs"}