@sproutsocial/seeds-react-data-viz 0.6.3 → 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 +15 -12
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +15 -12
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -1271,18 +1271,21 @@ var useTimeSeriesChartOptions = ({
|
|
|
1271
1271
|
point: {
|
|
1272
1272
|
events: {
|
|
1273
1273
|
/*
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1274
|
+
Custom hover behavior for multi-series column charts.
|
|
1275
|
+
|
|
1276
|
+
In multi-series column charts, multiple columns
|
|
1277
|
+
can share the same x-axis position (stacked or grouped). When hovering
|
|
1278
|
+
over one column, we want ALL columns at that x-position to highlight
|
|
1279
|
+
together for better visual feedback. Simple CSS :hover only affects the
|
|
1280
|
+
individual element being hovered, not related columns at the same position.
|
|
1281
|
+
|
|
1282
|
+
This custom behavior ensures that when you hover over any column at a
|
|
1283
|
+
specific x-position, all columns at that same position get the "column-hover"
|
|
1284
|
+
class, creating a unified highlight effect across all series.
|
|
1285
|
+
*/
|
|
1286
|
+
click: onClick && seriesType === "column" ? function(event) {
|
|
1287
|
+
return onClick({ x: event.point.x });
|
|
1288
|
+
} : void 0,
|
|
1286
1289
|
mouseOver: function() {
|
|
1287
1290
|
const x = this.x;
|
|
1288
1291
|
if (this.series && this.series.chart && this.series.chart.series) {
|