td-plots 1.10.2 → 1.11.1

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.
@@ -16,6 +16,8 @@ export interface BoxPlotDataTrace {
16
16
  fill?: "auto" | "none";
17
17
  y?: number;
18
18
  width?: number;
19
+ xaxis?: string;
20
+ yaxis?: string;
19
21
  }
20
22
  export interface BoxPlotProps {
21
23
  data: BoxPlotDataTrace[];
@@ -14,4 +14,7 @@ export type LegendBoxPlotItemProps = LegendItemProps & {
14
14
  };
15
15
  export declare const LegendBoxPlotItem: (props: LegendBoxPlotItemProps) => import("react/jsx-runtime").JSX.Element;
16
16
  export declare const LegendColorItem: (props: LegendItemProps) => import("react/jsx-runtime").JSX.Element;
17
- export declare const LegendLineItem: (props: LegendItemProps) => import("react/jsx-runtime").JSX.Element;
17
+ export type LegendLineItemProps = LegendItemProps & {
18
+ strokeDasharray?: string;
19
+ };
20
+ export declare const LegendLineItem: (props: LegendLineItemProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,24 @@
1
+ import React from "react";
2
+ import { BoxPlotDataTrace } from "./BoxPlot";
3
+ export interface SplitBoxPlotProps {
4
+ groups: BoxPlotDataTrace[];
5
+ additionalGroups?: BoxPlotDataTrace[];
6
+ width?: number;
7
+ height?: number;
8
+ title?: string;
9
+ xAxisTitle?: string;
10
+ yAxisTitle?: string;
11
+ secondXAxisTitle?: string;
12
+ secondYAxisTitle?: string;
13
+ containerStyleOverrides?: React.CSSProperties;
14
+ plotId?: string;
15
+ unit?: string;
16
+ xAnnotations?: {
17
+ x: number;
18
+ text?: string;
19
+ color?: string;
20
+ }[];
21
+ yTitleLocationOverride?: number;
22
+ }
23
+ declare const SplitBoxPlot: (props: SplitBoxPlotProps) => import("react/jsx-runtime").JSX.Element;
24
+ export default SplitBoxPlot;
@@ -1,16 +1,16 @@
1
- type SummaryComparisonData = {
2
- comparedMedian?: number;
3
- summarizedMin?: number;
4
- summarizedMax?: number;
5
- summarizedMean?: number;
1
+ type BracketData = {
2
+ userValue?: number;
3
+ populationMin: number;
4
+ populationMax: number;
6
5
  };
7
- type SummaryComparisonGroup = {
6
+ type BracketDataWithMeta = {
8
7
  groupLabel: string;
9
- data: SummaryComparisonData;
8
+ data: BracketData;
10
9
  color?: string;
11
10
  };
12
11
  export type SummaryComparisonPlotProps = {
13
- groups: SummaryComparisonGroup[];
12
+ groups: BracketDataWithMeta[];
13
+ userColor?: string;
14
14
  width?: number;
15
15
  height?: number;
16
16
  title?: string;
@@ -21,6 +21,11 @@ export type SummaryComparisonPlotProps = {
21
21
  tooltipPosition?: "left" | "right";
22
22
  startXAxisAtZero?: boolean;
23
23
  unit?: string;
24
+ tooltipLabels?: {
25
+ populationMinLabel?: string;
26
+ populationMaxLabel?: string;
27
+ userValueLabel?: string;
28
+ };
24
29
  };
25
30
  declare const SummaryComparisonPlot: (props: SummaryComparisonPlotProps) => import("react/jsx-runtime").JSX.Element;
26
31
  export default SummaryComparisonPlot;
package/dist/index.d.ts CHANGED
@@ -9,6 +9,8 @@ export { default as PairedComparisonsBoxPlot } from "./components/PairedComparis
9
9
  export type { PairedComparisonsBoxPlotProps } from "./components/PairedComparisonsBoxPlot";
10
10
  export { default as BoxPlot } from "./components/BoxPlot";
11
11
  export type { BoxPlotProps } from "./components/BoxPlot";
12
+ export { default as SplitBoxPlot } from "./components/SplitBoxPlot";
13
+ export type { SplitBoxPlotProps } from "./components/SplitBoxPlot";
12
14
  export { default as SummaryComparisonPlot } from "./components/SummaryComparisonPlot";
13
15
  export type { SummaryComparisonPlotProps } from "./components/SummaryComparisonPlot";
14
16
  export { SummaryComparisonPlotLegend } from "./components/SummaryComparisonPlot";
@@ -17,6 +19,6 @@ export type { LineWithHistogramProps } from "./components/LineWithHistogram";
17
19
  export { default as BarPlot } from "./components/BarPlot";
18
20
  export type { BarPlotProps } from "./components/BarPlot";
19
21
  export { LegendColorItem, LegendLineItem } from "./components/LegendUtils";
20
- export type { LegendItemProps } from "./components/LegendUtils";
22
+ export type { LegendItemProps, LegendLineItemProps, } from "./components/LegendUtils";
21
23
  export { isDateArray, isNumberArray } from "./components/Utils";
22
24
  export type { PlotParams } from "react-plotly.js";