@sproutsocial/seeds-react-data-viz 0.6.4 → 0.7.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.
package/dist/esm/index.js CHANGED
@@ -1188,18 +1188,21 @@ var useTimeSeriesChartOptions = ({
1188
1188
  point: {
1189
1189
  events: {
1190
1190
  /*
1191
- Custom hover behavior for multi-series column charts.
1192
-
1193
- In multi-series column charts, multiple columns
1194
- can share the same x-axis position (stacked or grouped). When hovering
1195
- over one column, we want ALL columns at that x-position to highlight
1196
- together for better visual feedback. Simple CSS :hover only affects the
1197
- individual element being hovered, not related columns at the same position.
1198
-
1199
- This custom behavior ensures that when you hover over any column at a
1200
- specific x-position, all columns at that same position get the "column-hover"
1201
- class, creating a unified highlight effect across all series.
1202
- */
1191
+ Custom hover behavior for multi-series column charts.
1192
+
1193
+ In multi-series column charts, multiple columns
1194
+ can share the same x-axis position (stacked or grouped). When hovering
1195
+ over one column, we want ALL columns at that x-position to highlight
1196
+ together for better visual feedback. Simple CSS :hover only affects the
1197
+ individual element being hovered, not related columns at the same position.
1198
+
1199
+ This custom behavior ensures that when you hover over any column at a
1200
+ specific x-position, all columns at that same position get the "column-hover"
1201
+ class, creating a unified highlight effect across all series.
1202
+ */
1203
+ click: onClick && seriesType === "column" ? function(event) {
1204
+ return onClick({ x: event.point.x });
1205
+ } : void 0,
1203
1206
  mouseOver: function() {
1204
1207
  const x = this.x;
1205
1208
  if (this.series && this.series.chart && this.series.chart.series) {