@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.
19 lines (18 loc) • 640 B
TypeScript
import { Datum } from "plotly.js-basic-dist";
import { BaseState, DefaultState } from "../BaseState";
export type SelectedPoint = Record<string, Datum>;
export type ChartState = {
/**
* Changes the selected points in the chart.
*/
changeSelection: (value: SelectedPoint[]) => void;
/**
* Clears all selected points on the chart.
*/
clearSelection: () => void;
/**
* The list of points currently selected on the chart. Applicable for bar, line, and scatter charts only.
*/
selectedPoints: SelectedPoint[];
} & BaseState;
export declare const DefaultChartState: DefaultState<ChartState>;