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.

66 lines (65 loc) 3.12 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"; /** * The configuration options of the plot area * ([see example]({% slug plotarea_chart_charts %})). * The plot area is the area which displays the series. */ export class PlotAreaComponent extends SettingsComponent { configurationService; /** * The background color of the Chart plot area. * Accepts a valid CSS color string, including HEX and RGB. * @default 'white' */ background; border; /** * The margin of the plot area. A numeric value sets all margins. * @default 5 */ margin; /** * The background opacity of the plot area. By default, the background is opaque. * @default 1 */ opacity; /** * The padding of the plot area. A numeric value sets all paddings. * The default padding for the Pie, Donut, Radar, and Polar Charts is proportional of the Chart size. * @default 5 */ padding; constructor(configurationService) { super('plotArea', configurationService); this.configurationService = configurationService; } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PlotAreaComponent, deps: [{ token: i1.ConfigurationService }], target: i0.ɵɵFactoryTarget.Component }); static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PlotAreaComponent, isStandalone: true, selector: "kendo-chart-plot-area", inputs: { background: "background", border: "border", margin: "margin", opacity: "opacity", padding: "padding" }, usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PlotAreaComponent, decorators: [{ type: Component, args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'kendo-chart-plot-area', template: '', standalone: true }] }], ctorParameters: function () { return [{ type: i1.ConfigurationService }]; }, propDecorators: { background: [{ type: Input }], border: [{ type: Input }], margin: [{ type: Input }], opacity: [{ type: Input }], padding: [{ type: Input }] } });