UNPKG

@progress/kendo-angular-charts

Version:

Kendo UI Charts for Angular - A comprehensive package for creating beautiful and interactive data visualization. Every chart type, stock charts, and sparklines are included.

82 lines (81 loc) 3.42 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; import { ConfigurationService } from '../common/configuration.service'; import { SettingsComponent } from '../common/settings.component'; import * as i0 from "@angular/core"; import * as i1 from "../common/configuration.service"; /** * Represents the Kendo UI for Angular Chart Area configuration. * Represents the entire visible area of the Chart * ([see example]({% slug chartarea_chart_charts %})). * * @example * ```html * <kendo-chart> * <kendo-chart-area background="#f0f0f0" [border]="{ color: '#ccc', width: 1 }"> * </kendo-chart-area> * </kendo-chart> * ``` */ export class ChartAreaComponent extends SettingsComponent { configurationService; /** * Specifies the background color of the Chart area. Accepts a valid CSS color string, including hex and rgb. * @default 'white' */ background; /** * Specifies the border configuration of the Chart area. */ border; /** * Specifies the height of the Chart area. * @default 400 */ height; /** * Specifies the margin of the Chart area. A numeric value sets all margins. * @default 5 */ margin; /** * Specifies the background opacity of the Chart area. By default, the background is opaque. * @default 1 */ opacity; /** * Specifies the width of the Chart area. * @default 600 */ width; constructor(configurationService) { super('chartArea', configurationService); this.configurationService = configurationService; } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ChartAreaComponent, deps: [{ token: i1.ConfigurationService }], target: i0.ɵɵFactoryTarget.Component }); static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: ChartAreaComponent, isStandalone: true, selector: "kendo-chart-area", inputs: { background: "background", border: "border", height: "height", margin: "margin", opacity: "opacity", width: "width" }, usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ChartAreaComponent, decorators: [{ type: Component, args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'kendo-chart-area', template: '', standalone: true }] }], ctorParameters: () => [{ type: i1.ConfigurationService }], propDecorators: { background: [{ type: Input }], border: [{ type: Input }], height: [{ type: Input }], margin: [{ type: Input }], opacity: [{ type: Input }], width: [{ type: Input }] } });