td-plots 1.9.1 → 1.10.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.
@@ -0,0 +1,32 @@
1
+ import React from "react";
2
+ export interface BarPlotProps {
3
+ data: {
4
+ x: number;
5
+ y: number;
6
+ }[];
7
+ data2?: number[];
8
+ data2Selected?: [number, number];
9
+ barWidth?: number;
10
+ barColor?: string;
11
+ barColor2?: string;
12
+ xAccessor?: (d: any) => number;
13
+ yAccessor?: (d: any) => number;
14
+ width?: number;
15
+ height?: number;
16
+ title?: string;
17
+ title2?: string;
18
+ xAxisTitle?: string;
19
+ xAxis2Title?: string;
20
+ yAxisTitle?: string;
21
+ yAxis2Title?: string;
22
+ containerStyleOverrides?: React.CSSProperties;
23
+ plotId?: string;
24
+ xAnnotations?: {
25
+ x: number;
26
+ text?: string;
27
+ color?: string;
28
+ }[];
29
+ barHoverTemplate?: string;
30
+ }
31
+ declare const BarPlot: (props: BarPlotProps) => import("react/jsx-runtime").JSX.Element;
32
+ export default BarPlot;
@@ -15,6 +15,7 @@ export interface BoxPlotDataTrace {
15
15
  color?: string;
16
16
  fill?: "auto" | "none";
17
17
  y?: number;
18
+ width?: number;
18
19
  }
19
20
  export interface BoxPlotProps {
20
21
  data: BoxPlotDataTrace[];
@@ -17,6 +17,7 @@ export interface PairedComparisonsBoxPlotProps {
17
17
  containerStyleOverrides?: React.CSSProperties;
18
18
  showLegend?: boolean;
19
19
  plotId?: string;
20
+ unit?: string;
20
21
  }
21
22
  declare const PairedComparisonsBoxPlot: (props: PairedComparisonsBoxPlotProps) => import("react/jsx-runtime").JSX.Element;
22
23
  export default PairedComparisonsBoxPlot;
@@ -20,6 +20,7 @@ export type SummaryComparisonPlotProps = {
20
20
  plotId?: string;
21
21
  tooltipPosition?: "left" | "right";
22
22
  startXAxisAtZero?: boolean;
23
+ unit?: string;
23
24
  };
24
25
  declare const SummaryComparisonPlot: (props: SummaryComparisonPlotProps) => import("react/jsx-runtime").JSX.Element;
25
26
  export default SummaryComparisonPlot;
package/dist/index.d.ts CHANGED
@@ -14,5 +14,7 @@ export type { SummaryComparisonPlotProps } from "./components/SummaryComparisonP
14
14
  export { SummaryComparisonPlotLegend } from "./components/SummaryComparisonPlot";
15
15
  export { default as LineWithHistogram } from "./components/LineWithHistogram";
16
16
  export type { LineWithHistogramProps } from "./components/LineWithHistogram";
17
+ export { default as BarPlot } from "./components/BarPlot";
18
+ export type { BarPlotProps } from "./components/BarPlot";
17
19
  export { isDateArray, isNumberArray } from "./components/Utils";
18
20
  export type { PlotParams } from "react-plotly.js";