@visionaris-bruno/vs-echarts 6.4.1 → 6.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts
CHANGED
|
@@ -61,6 +61,9 @@ interface IBarOptionsOverrides {
|
|
|
61
61
|
interface IRingOptionsOverrides {
|
|
62
62
|
series?: Partial<PieSeriesOption>;
|
|
63
63
|
}
|
|
64
|
+
interface IPieOptionsOverrides {
|
|
65
|
+
series?: Partial<PieSeriesOption>;
|
|
66
|
+
}
|
|
64
67
|
interface IScatterOptionsOverrides {
|
|
65
68
|
series?: Partial<ScatterSeriesOption>;
|
|
66
69
|
}
|
|
@@ -87,6 +90,8 @@ interface IOptionsOverrides {
|
|
|
87
90
|
bar: IBarOptionsOverrides;
|
|
88
91
|
/** ring options overrides */
|
|
89
92
|
ring: IRingOptionsOverrides;
|
|
93
|
+
/** pie options overrides */
|
|
94
|
+
pie: IPieOptionsOverrides;
|
|
90
95
|
/** scatter options overrides */
|
|
91
96
|
scatter: IScatterOptionsOverrides;
|
|
92
97
|
/** funnel options overrides */
|
|
@@ -188,6 +193,7 @@ declare class VSECDirector {
|
|
|
188
193
|
makeLine(data: IEChartData, overrides: IOptionsOverridesWrapper, opts?: MakeLineOpts): void;
|
|
189
194
|
makeScatter(data: IEChartData, overrides: IOptionsOverridesWrapper, opts?: MakeScatterOpts): void;
|
|
190
195
|
makeRing(data: IEChartData, overrides: IOptionsOverridesWrapper, opts?: MakeOpts): void;
|
|
196
|
+
makePie(data: IEChartData, overrides: IOptionsOverridesWrapper, opts?: MakeOpts): void;
|
|
191
197
|
makeFunnel(data: IEChartData, overrides: IOptionsOverridesWrapper, opts?: MakeOpts): void;
|
|
192
198
|
}
|
|
193
199
|
|
|
@@ -274,12 +280,16 @@ declare abstract class BaseEchartsComponent implements OnChanges, OnDestroy {
|
|
|
274
280
|
onChartInit(instance: any): void;
|
|
275
281
|
onChartClick(event: any): void;
|
|
276
282
|
/**
|
|
277
|
-
*
|
|
283
|
+
* Maneja el cambio de selección en el gráfico (selección y deselección de elementos).
|
|
284
|
+
* Requiere que las series del gráfico tengan configurado `selectMode`.
|
|
278
285
|
*
|
|
279
|
-
*
|
|
280
|
-
*
|
|
286
|
+
* @param event Datos del evento de cambio de selección de ECharts.
|
|
287
|
+
* @param opts Opciones de configuración adicionales.
|
|
288
|
+
* @param opts.fixPieDataIndexInside Si es true, aplica la corrección de índice para gráficos tipo pie.
|
|
281
289
|
*/
|
|
282
|
-
onChartSelectChanged(event: NGXEchartsSelectChangeEventData
|
|
290
|
+
onChartSelectChanged(event: NGXEchartsSelectChangeEventData, opts?: {
|
|
291
|
+
fixPieDataIndexInside?: boolean;
|
|
292
|
+
}): void;
|
|
283
293
|
/**
|
|
284
294
|
* Método público para forzar el redimensionado desde el padre
|
|
285
295
|
*/
|
|
@@ -349,7 +359,6 @@ declare class EchartsRingComponent extends BaseEchartsComponent {
|
|
|
349
359
|
onChartClick(event: any): void;
|
|
350
360
|
onChartMouseOver(event: any): void;
|
|
351
361
|
onChartMouseOut(event: any): void;
|
|
352
|
-
onChartSelectChangedParcheado(e: NGXEchartsSelectChangeEventData): void;
|
|
353
362
|
/**
|
|
354
363
|
* Actualiza el texto del Graphic central y persiste la selección en el modelo de opciones.
|
|
355
364
|
*/
|
|
@@ -359,6 +368,60 @@ declare class EchartsRingComponent extends BaseEchartsComponent {
|
|
|
359
368
|
static ɵcmp: i0.ɵɵComponentDeclaration<EchartsRingComponent, "vs-echarts-ring", never, {}, {}, never, never, true, never>;
|
|
360
369
|
}
|
|
361
370
|
|
|
371
|
+
/**
|
|
372
|
+
* PieBuilder
|
|
373
|
+
*
|
|
374
|
+
* Builder concreto para el gráfico de Pie (torta concéntrica).
|
|
375
|
+
*
|
|
376
|
+
*/
|
|
377
|
+
declare class PieBuilder implements IEChartBuilder {
|
|
378
|
+
baseProduct: VSEChartProduct;
|
|
379
|
+
protected valueFormatter: EChartValueFormatter;
|
|
380
|
+
protected palette: string[];
|
|
381
|
+
protected colorResolver?: ChartColorResolver;
|
|
382
|
+
protected result: EChartsOption;
|
|
383
|
+
constructor(baseProduct: VSEChartProduct);
|
|
384
|
+
reset(): void;
|
|
385
|
+
addCommons(): void;
|
|
386
|
+
addSeries(data: IEChartData, overrides: SeriesOption): void;
|
|
387
|
+
addTooltip(data: IEChartData, overrides: ITooltipOptionsOverrides): void;
|
|
388
|
+
addLegend(): void;
|
|
389
|
+
addPolar(): void;
|
|
390
|
+
addXAxis(data: {
|
|
391
|
+
categories: IEChartData["categories"];
|
|
392
|
+
}, overrides: IOptionsOverrides["axis"], type: 'category' | 'value'): void;
|
|
393
|
+
addYAxis(data: {
|
|
394
|
+
categories: IEChartData["categories"];
|
|
395
|
+
}, overrides: IOptionsOverrides["axis"], type: 'category' | 'value'): void;
|
|
396
|
+
addRadiusAxis(data: IEChartData, overrides: IOptionsOverrides["axis"]): void;
|
|
397
|
+
addAngleAxis(data: IEChartData, overrides: IOptionsOverrides["axis"]): void;
|
|
398
|
+
addGraphic(): void;
|
|
399
|
+
setValueFormatter(formatter: EChartValueFormatter | undefined): void;
|
|
400
|
+
setPalette(palette: string[] | undefined): void;
|
|
401
|
+
setColorResolver(resolver: ChartColorResolver | undefined): void;
|
|
402
|
+
getResult(): EChartsOption;
|
|
403
|
+
private formatCellValue;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* EchartsPieComponent
|
|
408
|
+
*
|
|
409
|
+
* Especialista en visualización de tipo Pie (Torta y Anillos concéntricos).
|
|
410
|
+
* La primera serie se dibuja como un gráfico de torta tradicional (lleno) y
|
|
411
|
+
* las subsecuentes como anillos concéntricos alrededor.
|
|
412
|
+
*/
|
|
413
|
+
declare class EchartsPieComponent extends BaseEchartsComponent {
|
|
414
|
+
protected baseSeriesOptions: PieSeriesOption;
|
|
415
|
+
protected baseProduct: VSEChartProduct;
|
|
416
|
+
protected builder: PieBuilder;
|
|
417
|
+
protected director: VSECDirector;
|
|
418
|
+
constructor();
|
|
419
|
+
protected make(makeOpts: MakeOpts): void;
|
|
420
|
+
protected updateChartOptions(): void;
|
|
421
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EchartsPieComponent, never>;
|
|
422
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EchartsPieComponent, "vs-echarts-pie", never, {}, {}, never, never, true, never>;
|
|
423
|
+
}
|
|
424
|
+
|
|
362
425
|
/**
|
|
363
426
|
* FunnelBuilder
|
|
364
427
|
*
|
|
@@ -589,5 +652,5 @@ declare abstract class EchartsScatterComponent extends BaseEchartsComponent {
|
|
|
589
652
|
static ɵcmp: i0.ɵɵComponentDeclaration<EchartsScatterComponent, "vs-echarts-scatter", never, {}, {}, never, never, true, never>;
|
|
590
653
|
}
|
|
591
654
|
|
|
592
|
-
export { BaseEchartsComponent, EChartsAreaComponent, EChartsAreaStackComponent, EChartsBarStackedComponent, EChartsBarStackedRadialComponent, EChartsHBarComponent, EChartsHBarStackedComponent, EchartsBarComponent, EchartsFunnelComponent, EchartsLineComponent, EchartsRingComponent, EchartsScatterComponent, defaultOptionsOverrides, initializeEcharts, provideVSEcharts };
|
|
593
|
-
export type { ChartColorResolver, ChartOrientation, EChartClickType, EChartValueFormatter, IAreaOptionsOverrides, IAreaStackOptionsOverrides, IAxisOptionsOverrides, IBarOptionsOverrides, IBarStackedOptionsOverrides, IBarStackedRadialOptionsOverrides, IEChartBuilder, IEChartData, IEChartSeries, IFunnelOptionsOverrides, IHBarOptionsOverrides, IHBarStackedOptionsOverrides, ILineOptionsOverrides, IOptionsOverrides, IOptionsOverridesWrapper, IRingOptionsOverrides, IScatterOptionsOverrides, ITooltipOptionsOverrides, NGXEchartsSelectChangeEventData, VSEChartProduct };
|
|
655
|
+
export { BaseEchartsComponent, EChartsAreaComponent, EChartsAreaStackComponent, EChartsBarStackedComponent, EChartsBarStackedRadialComponent, EChartsHBarComponent, EChartsHBarStackedComponent, EchartsBarComponent, EchartsFunnelComponent, EchartsLineComponent, EchartsPieComponent, EchartsRingComponent, EchartsScatterComponent, defaultOptionsOverrides, initializeEcharts, provideVSEcharts };
|
|
656
|
+
export type { ChartColorResolver, ChartOrientation, EChartClickType, EChartValueFormatter, IAreaOptionsOverrides, IAreaStackOptionsOverrides, IAxisOptionsOverrides, IBarOptionsOverrides, IBarStackedOptionsOverrides, IBarStackedRadialOptionsOverrides, IEChartBuilder, IEChartData, IEChartSeries, IFunnelOptionsOverrides, IHBarOptionsOverrides, IHBarStackedOptionsOverrides, ILineOptionsOverrides, IOptionsOverrides, IOptionsOverridesWrapper, IPieOptionsOverrides, IRingOptionsOverrides, IScatterOptionsOverrides, ITooltipOptionsOverrides, NGXEchartsSelectChangeEventData, VSEChartProduct };
|