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.

16 lines (15 loc) 662 B
import { Layout } from "plotly.js-basic-dist"; import { AxisType, BarProps, ChartProps, Range } from "./Chart.types"; export declare const buildLayout: ({ legendPosition, xAxisType, yAxisType, xAxisRange, yAxisRange, ...props }: { type: ChartProps["type"]; legendPosition?: ChartProps["legendPosition"]; xAxisTitle?: string | undefined; xAxisType?: AxisType | undefined; xAxisFormat?: string | undefined; xAxisRange?: Range | undefined; yAxisTitle?: string | undefined; yAxisType?: AxisType | undefined; yAxisFormat?: string | undefined; yAxisRange?: Range | undefined; mode?: BarProps["mode"]; }) => Partial<Layout>;