Declara cómo se interpretan los valores de cada eje. Las categorías tienen IDs; las fechas se representan en milisegundos UTC.
Ejemplo de uso
import type { ChartData } from '@neural-charts/angular';
export const axes = {
"x": {
"type": "category",
"values": [
{
"id": "q0",
"label": "Q1"
},
{
"id": "q1",
"label": "Q2"
},
{
"id": "q2",
"label": "Q3"
},
{
"id": "q3",
"label": "Q4"
},
{
"id": "q4",
"label": "Q5"
},
{
"id": "q5",
"label": "Q6"
}
]
},
"y": {
"type": "linear"
}
} satisfies (ChartData & { type: 'areaspline' })['axes'];Firma TypeScript
import type { ChartData } from '@neural-charts/web';
export type Signature = (ChartData & { type: 'areaspline' })['axes'];