ChartProps
Grafico de lineas, barras, area, sectores o anillo con varias series, leyenda y tooltips accesibles (raton y teclado). SVG propio con colores del tema, sin librerias. Categoria: chart.
Firma
export interface ChartProps extends CommonProps {
kind?: "line" | "bar" | "area" | "pie" | "donut" | Expr;
labels?: Array<string | number | boolean | I18nText> | Expr;
series?: Array<{ label: string | number | boolean | I18nText; data?: Array<unknown> | Expr; tone?: Tone | Expr; }> | Expr;
data?: Array<DatoShape> | Expr;
stacked?: boolean | Expr;
showLegend?: boolean | Expr;
showGrid?: boolean | Expr;
valueFormat?: "number" | "compact" | "percent" | Expr;
unit?: string | number | boolean | I18nText;
height?: "sm" | "md" | "lg" | Expr;
centerLabel?: string | number | boolean | I18nText;
title?: string | number | boolean | I18nText;
description?: string | number | boolean | I18nText;
emptyText?: string | number | boolean | I18nText;
loading?: boolean | Expr;
error?: string | number | boolean | I18nText;
}- Extiende
Miembros (16)
| Nombre | Tipo | Descripción |
|---|---|---|
| kindopcional | "line" | "bar" | "area" | "pie" | "donut" | Expr | Tipo de grafico. Por defecto: |
| labelsopcional | Array<string | number | boolean | I18nText> | Expr | Etiquetas del eje X (line, bar, area): una por valor de cada serie (max 120). |
| seriesopcional | Array<{ label: string | number | boolean | I18nText; data?: Array<unknown> | Expr; tone?: Tone | Expr; }> | Expr | Series (max 8) de line, bar y area. |
| dataopcional | Array<DatoShape> | Expr | pie y donut: [{label,value,tone?}] (max 60). |
| stackedopcional | boolean | Expr | Apila las series (bar y area). |
| showLegendopcional | boolean | Expr | Muestra la leyenda. Por defecto: |
| showGridopcional | boolean | Expr | Lineas guia horizontales. Por defecto: |
| valueFormatopcional | "number" | "compact" | "percent" | Expr | Formato de los valores en ejes y tooltips (percent: el valor ya es un porcentaje 0-100). Por defecto: |
| unitopcional | string | number | boolean | I18nText | Unidad que se anade al valor en los tooltips (p. ej. correos). |
| heightopcional | "sm" | "md" | "lg" | Expr | Altura. Por defecto: |
| centerLabelopcional | string | number | boolean | I18nText | Texto central (donut). |
| titleopcional | string | number | boolean | I18nText | Titulo accesible. |
| descriptionopcional | string | number | boolean | I18nText | Resumen para lectores de pantalla. |
| emptyTextopcional | string | number | boolean | I18nText | Texto si no hay datos. |
| loadingopcional | boolean | Expr | Muestra esqueleto. |
| erroropcional | string | number | boolean | I18nText | Mensaje de error en lugar del grafico. |
Usado en / Referenciado por
Referencia a
Fuente: bloomx-extensions/_shared/sdk/ui.d.ts:2573 · ui.d.ts