UNPKG

@fusedashlabs/ui9000-workspace

Version:

UI9000 workspace MCP. One tool, show_workspace, draws a chart from your table. Set TYPESAFE_API_KEY to let Jev choose the chart.

17 lines (16 loc) • 944 B
/** * Band utilization object for `<ui9000-band-utilization-chart>`. * * The widget reads a WidgetItem, not a custom series list. Long rows use * `yAxe` as the entity, `xAxe` as the share, and `groupBy` as the segment. * Wide rows use `xAxe` as the entity and one `yAxe` column per segment. * * Call this chart only when that breakdown is repeated for at least two * entities and each entity sums to 100. One category of slices stays a pie. * Values that do not sum to a whole stay a bar. */ export declare function bandUtilizationFits(payload: unknown): boolean; /** Pie for one whole. Band when the same shares repeat once per entity. */ export declare function partToWholeChart(payload: unknown): 'pie-chart' | 'band-utilization-chart'; export declare function isPartToWholeChart(id: string): boolean; export declare function bandUtilizationPayload(fields: Record<string, string>, rows: Record<string, unknown>[]): unknown | null;