Files
data-viz-elements-ui/src/components/viz-area-chart/viz-area-chart.component.html
Giuliano Silvestro 0ce172bfc1 Initial commit: data-viz-elements-ui library
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 22:06:35 +10:00

10 lines
649 B
HTML

<div class="viz-area-chart" [class.viz-area-chart--legend-left]="legend().visible && legend().position === 'left'" [class.viz-area-chart--legend-right]="legend().visible && legend().position === 'right'">
@if (legend().visible && (legend().position === 'top' || legend().position === 'left')) {
<viz-legend [items]="legendItems()" [position]="legend().position" (itemClick)="onLegendClick($event)" />
}
<div #chart></div>
@if (legend().visible && (legend().position === 'bottom' || legend().position === 'right')) {
<viz-legend [items]="legendItems()" [position]="legend().position" (itemClick)="onLegendClick($event)" />
}
</div>