@turquoisehealth/pit-viper 2.154.0 → 2.154.1-dev.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.
@@ -31,6 +31,29 @@ export interface ServerSideChartDataHandlerResponse {
31
31
  data: AgChartOptions["data"];
32
32
  stackField: string;
33
33
  }
34
+ export interface VerticalLineOverlay {
35
+ /** For numeric positioning in histograms - the actual x-axis value to plot */
36
+ numericValue: number;
37
+ /** Line color */
38
+ stroke?: string;
39
+ /** Line width in pixels */
40
+ strokeWidth?: number;
41
+ /** Line opacity (0-1) */
42
+ strokeOpacity?: number;
43
+ /** Dash pattern [dash length, gap length] */
44
+ lineDash?: number[];
45
+ /** Label text to display on the line */
46
+ label?: string;
47
+ /** Label configuration */
48
+ labelConfig?: {
49
+ position?: "top" | "bottom";
50
+ color?: string;
51
+ fontSize?: number;
52
+ fontWeight?: string;
53
+ };
54
+ /** Tooltip content - description shown on hover */
55
+ description?: string;
56
+ }
34
57
  export interface PvDataTableWithChartProps<T> extends PvDataTableProps<T> {
35
58
  enabledChartTypes?: supportedChartType[];
36
59
  serverSideChartHandler?: (params: ServerSideChartDataHandlerParams) => Promise<ServerSideChartDataHandlerResponse>;
@@ -64,6 +87,10 @@ export interface PvDataTableWithChartProps<T> extends PvDataTableProps<T> {
64
87
  customCssProperties?: {
65
88
  agGridWrapper: CSSProperties;
66
89
  };
90
+ /**
91
+ * Vertical line overlays to display on the chart with optional tooltips
92
+ */
93
+ verticalLineOverlays?: VerticalLineOverlay[];
67
94
  }
68
95
  export interface OptionWithFormatterAndDataType extends Option {
69
96
  formatter?: ValueFormatterFunc | string;