td-plots 1.9.1 → 1.10.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.
@@ -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;
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";