CoolFace
Datasetpublic

gradio/frontend

sourceHugging Faceupdated 15h agoView on Hugging Face
1likes442kdownloads
types.ts50 linesDownload Raw Back to nativeplot
1import type { Gradio, SelectData } from "@gradio/utils";2import type { LoadingStatus } from "@gradio/statustracker";3 4export interface PlotData {5	columns: string[];6	data: [string | number][];7	datatypes: Record<string, "quantitative" | "temporal" | "nominal">;8	mark: "line" | "point" | "bar";9}10 11export interface NativePlotProps {12	value: PlotData | null;13	x: string;14	y: string;15	color: string | null;16	title: string | null;17	x_title: string | null;18	y_title: string | null;19	color_title: string | null;20	x_bin: string | number | null;21	y_aggregate: "sum" | "mean" | "median" | "min" | "max" | undefined;22	color_map: Record<string, string> | null;23	colors_in_legend: string[] | null;24	x_lim: [number | null, number | null] | null;25	y_lim: [number | null, number | null] | null;26	x_label_angle: number | null;27	y_label_angle: number | null;28	x_axis_labels_visible: boolean;29	caption: string | null;30	sort: "x" | "y" | "-x" | "-y" | string[] | null;31	tooltip: "axis" | "none" | "all" | string[];32	buttons: string[] | null;33	_selectable: boolean;34	label: string;35	elem_id: string;36	elem_classes: string[];37	visible: boolean | "hidden";38	show_label: boolean;39	scale: number | null;40	min_width: number | undefined;41	loading_status: LoadingStatus | undefined;42	height: number | undefined;43}44 45export interface NativePlotEvents {46	select: SelectData;47	double_click: undefined;48	clear_status: LoadingStatus;49}50 
gradio/frontend · CoolFace