UNPKG

@airplane/views

Version:

A React library for building Airplane views. Views components are optimized in style and functionality to produce internal apps that are easy to build and maintain.

13 lines (12 loc) 601 B
import Plotly, { Data } from "plotly.js-basic-dist"; import { ChartProps } from "./Chart.types"; type ChartComponentProps = ChartProps & { normalizedData: Data[]; onSelected?: (event: Plotly.PlotSelectionEvent) => void; onDeselect?: () => void; }; /** * Presentational component. Assumes data fetching, wrangling, etc. has been handled. */ declare const ChartComponent: ({ onSelected, onDeselect, title, normalizedData, className, style, width, height, grow, loading, error, ...restProps }: ChartComponentProps) => import("react/jsx-runtime").JSX.Element; export default ChartComponent;