@zelviora/angular-chart
v0.0.1
Published
Angular standalone directives and ChartModule for @zelviora/chart (26 ECharts chart components).
Maintainers
Readme
@zelviora/angular-chart
Angular standalone directives and ChartModule for @zelviora/chart, providing dedicated directives for every ECharts chart type.
Usage
import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { XBarChartDirective, XPieChartDirective } from '@zelviora/angular-chart';
@Component({
standalone: true,
imports: [XBarChartDirective, XPieChartDirective],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
template: `
<z-bar-chart
title="Quarterly Revenue"
[categories]="['Q1', 'Q2', 'Q3', 'Q4']"
[series]="[{ name: '2026', data: [120, 180, 150, 220], tone: 'categorical-1' }]"
(xPointSelect)="onSelect($event)"
></z-bar-chart>
`,
})
export class DashboardComponent {
onSelect(event: CustomEvent) {
console.log(event.detail);
}
}