Krizaka UI
Krizaka UI
Composants

Generated view catalog

KpiStat and ChartCard as entries of the data-driven UI catalog (A2UI v0.9): a model's answer draws figures and charts from data, never code.

Web · ✓Mobile · ✗ à construireBureau · ✓BêtaGraphiques
import { chartsGenUiCatalog } from "@krizaka/charts/genui";

Web uniquement — React, depuis @krizaka/charts/genui. Bêta : son API peut encore changer à une version mineure.

  • Mobile · ✗ à construire. Slice 3 of the data-driven UI epic: the same messages drawn by the native charts. issue #207

Pourquoi il est là. Used by Orazaka.

Quand l’utiliser

  • With GenUiStream of @krizaka/ui: merge chartsGenUiCatalog with baseGenUiCatalog so a model's answer can hold figures and charts.
  • When an assistant answers a question about data with a dashboard the reader can then refine.

Quand ne pas l’utiliser

  • A dashboard the app knows in advance: use the charts directly.À la place : Chart card
  • One figure in a page.À la place : KPI stat

Installation

Installer

npm install @krizaka/charts

Importer

import { chartsGenUiCatalog } from "@krizaka/charts/genui";

Exemples

A generated dashboard

Two figures and a chart from a model's answer, drawn with both catalogs.

Props

Ce module n'a pas de props de composant : voir l'import et l'aperçu ci-dessus.

Accessibilité

  • Each generated chart keeps its title as accessible name, its written summary and its data table, as any chart of the package.

Bonnes pratiques

  • Tell the model the catalog and that every number must come from the data it was given: the entries check shapes, not truth.
  • Formats are a closed list (number, integer, compact, percent, money with a currency): no free-form format string reaches the chart.

Générée depuis le code de @krizaka/ui 3.63.1 : son meta.ts, ses exemples et ses types.Modifier cette documentation sur GitHub

Sur cette page