td-plots 1.8.2 → 1.9.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
+ import { PlotParams } from "react-plotly.js";
3
+ import "./plotStyles.scss";
4
+ export interface LineDataTrace {
5
+ x: number[] | Date[];
6
+ y: number[];
7
+ name?: string;
8
+ color?: string;
9
+ hovertemplate?: string;
10
+ }
11
+ export interface HistogramDataTrace {
12
+ x: number[] | Date[];
13
+ name?: string;
14
+ color?: string;
15
+ hovertemplate?: string;
16
+ }
17
+ export interface LineWithHistogramProps {
18
+ lineData: LineDataTrace;
19
+ histogramData: HistogramDataTrace;
20
+ width?: number;
21
+ height?: number;
22
+ title?: string;
23
+ plotId?: string;
24
+ xAxisTitle?: string;
25
+ yAxisTitle?: string;
26
+ y2AxisTitle?: string;
27
+ containerStyleOverrides?: React.CSSProperties;
28
+ extraLayoutConfig?: Partial<PlotParams["layout"]>;
29
+ revision?: number;
30
+ }
31
+ declare const LineWithHistogram: (props: LineWithHistogramProps) => import("react/jsx-runtime").JSX.Element;
32
+ export default LineWithHistogram;
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- import './plotStyles.scss';
1
+ import React from "react";
2
+ import "./plotStyles.scss";
3
3
  export type RadialHistogramPlotProps = {
4
4
  data: number[];
5
5
  barColor?: string;
package/dist/index.d.ts CHANGED
@@ -12,8 +12,7 @@ export type { BoxPlotProps } from "./components/BoxPlot";
12
12
  export { default as SummaryComparisonPlot } from "./components/SummaryComparisonPlot";
13
13
  export type { SummaryComparisonPlotProps } from "./components/SummaryComparisonPlot";
14
14
  export { SummaryComparisonPlotLegend } from "./components/SummaryComparisonPlot";
15
- export { default as LinePlot } from "./components/LinePlot";
16
- export type { LinePlotProps } from "./components/LinePlot";
17
- export { default as TestPlot } from "./components/TestPlot";
15
+ export { default as LineWithHistogram } from "./components/LineWithHistogram";
16
+ export type { LineWithHistogramProps } from "./components/LineWithHistogram";
18
17
  export { isDateArray, isNumberArray } from "./components/Utils";
19
18
  export type { PlotParams } from "react-plotly.js";