@texturehq/edges 2.2.5 → 2.2.7

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.
@@ -238,6 +238,11 @@ interface TooltipSeries {
238
238
  type?: "area" | "line" | "bar" | "event";
239
239
  category?: string;
240
240
  categoryColor?: string;
241
+ /** Optional extra rows to display in the tooltip below the category row. */
242
+ extraTooltipRows?: Array<{
243
+ label: string;
244
+ value: string;
245
+ }>;
241
246
  }
242
247
  interface SeriesMetadata {
243
248
  label: string;
@@ -315,6 +320,18 @@ interface BaseDataPoint {
315
320
  */
316
321
  showTooltipMarker?: boolean;
317
322
  category?: string;
323
+ /**
324
+ * Optional extra rows to display in the tooltip for this data point, below
325
+ * the series value and category rows. Purely presentational — does not
326
+ * affect chart drawing, scales, or CSV export. Used by consumers that need
327
+ * to surface point-level context (e.g. per-sample geolocation status like
328
+ * home/away). Each row is `{ label, value }` and rendered as
329
+ * `<label>: <value>` in the tooltip.
330
+ */
331
+ extraTooltipRows?: Array<{
332
+ label: string;
333
+ value: string;
334
+ }>;
318
335
  }
319
336
  /**
320
337
  * Canonical `AreaSeries` baseline accessor: the per-point band floor. Pass as
@@ -238,6 +238,11 @@ interface TooltipSeries {
238
238
  type?: "area" | "line" | "bar" | "event";
239
239
  category?: string;
240
240
  categoryColor?: string;
241
+ /** Optional extra rows to display in the tooltip below the category row. */
242
+ extraTooltipRows?: Array<{
243
+ label: string;
244
+ value: string;
245
+ }>;
241
246
  }
242
247
  interface SeriesMetadata {
243
248
  label: string;
@@ -315,6 +320,18 @@ interface BaseDataPoint {
315
320
  */
316
321
  showTooltipMarker?: boolean;
317
322
  category?: string;
323
+ /**
324
+ * Optional extra rows to display in the tooltip for this data point, below
325
+ * the series value and category rows. Purely presentational — does not
326
+ * affect chart drawing, scales, or CSV export. Used by consumers that need
327
+ * to surface point-level context (e.g. per-sample geolocation status like
328
+ * home/away). Each row is `{ label, value }` and rendered as
329
+ * `<label>: <value>` in the tooltip.
330
+ */
331
+ extraTooltipRows?: Array<{
332
+ label: string;
333
+ value: string;
334
+ }>;
318
335
  }
319
336
  /**
320
337
  * Canonical `AreaSeries` baseline accessor: the per-point band floor. Pass as