import { NAME, pattern, UI, type VNode } from "commonfabric"; // deno-lint-ignore no-empty-interface interface ChartStoryInput {} export interface ChartStoryOutput { [NAME]: string; [UI]: VNode; controls: VNode; } export default pattern(() => { const lineData = [ { month: "Jan", value: 30 }, { month: "Feb", value: 45 }, { month: "Mar", value: 28 }, { month: "Apr", value: 62 }, { month: "May", value: 55 }, { month: "Jun", value: 78 }, ]; const barData = [ { category: "A", count: 40 }, { category: "B", count: 65 }, { category: "C", count: 30 }, { category: "D", count: 85 }, { category: "E", count: 50 }, ]; return { [NAME]: "cf-chart Story", [UI]: (
Line Chart
Area + Line Chart
Bar Chart
Sparkline
), controls: (
No interactive controls. This story shows cf-chart variations.
), }; });