import { DOMAttributes } from "svelte/elements"; import { CategoryValueChartOptions, ObjectData, ChartModelFilter, ColumnChartOptions, BarChartOptions, LineChartOptions, PieChartOptions, ScatterChartOptions, AreaChartOptions, GaugeChartOptions, SankeyOptions, VisuallyJsDefaultJSON } from "@visuallyjs/browser-ui"; /** * @group Props */ export interface BaseXYChartComponentProps extends DOMAttributes { /** * Options for the chart */ options: Omit; /** * Optional class name to set on the chart component's container */ className?: string; /** * Optional data to load after the chart has been mounted. */ data?: Array; /** * Optional url from which to load data after the component has been mounted. If you provide this and also data, this will take precedence. */ url?: string; /** * Optional filter to apply to the data source. */ dataSourceFilter?: ChartModelFilter; } /** * Props for the AreaChartComponent * @group Props */ export interface AreaChartComponentProps extends BaseXYChartComponentProps { } /** * Props for the ColumnChartComponent * @group Props */ export interface ColumnChartComponentProps extends BaseXYChartComponentProps { } /** * Props for the BarChartComponent * @group Props */ export interface BarChartComponentProps extends BaseXYChartComponentProps { } /** * Props for the LineChartComponent * @group Props */ export interface LineChartComponentProps extends BaseXYChartComponentProps { } /** * Props for the PieChartComponent * @group Props */ export interface PieChartComponentProps extends BaseXYChartComponentProps { } /** * Props for the BarChartComponent * @group Props */ export interface ScatterChartComponentProps extends BaseXYChartComponentProps { } /** * Props for the XYChartComponent * @group Props */ export interface XYChartComponentProps extends BaseXYChartComponentProps { } /** * @group Props */ export interface GaugeChartComponentProps extends DOMAttributes { /** * Options for the chart */ options: Omit; /** * Optional class name to set on the chart component's container */ className?: string; /** * Optional data to load after the chart has been mounted. */ data?: Array; } /** * @group Props */ export interface SankeyChartComponentProps extends DOMAttributes { /** * Options for the chart */ options: Omit; /** * Optional class name to set on the chart component's container */ className?: string; /** * Optional data to load into the chart (in CSV format) */ csvData?: string; /** * Optional data to load into the chart (in VisuallyJs default json format) */ jsonData?: VisuallyJsDefaultJSON; /** * Optional url from which to load data after the component has been mounted. If you provide this and also data, this will take precedence. */ url?: string; /** * Whether the chart is interactive. */ interactive?: boolean; /** * Optional property to pivot the sankey chart on. */ pivot?: string; }