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.

68 lines (67 loc) 2.02 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { ChartComponent } from '../chart.component'; import { drawing, geometry } from '@progress/kendo-drawing'; /** * Represents the context for the `visual` function of the series label. */ export interface SeriesLabelsVisualArgs { /** * Specifies a function that gets the default visual. */ createVisual: () => drawing.Element; /** * Specifies the options of the label. */ options: any; /** * Specifies the rectangle that defines the normal position of the visual. */ rect: geometry.Rect; /** * Specifies the instance of the Chart component. */ sender: ChartComponent; /** * Specifies the text of the label. */ text: string; /** * Specifies the data item associated with the point. */ dataItem: any; /** * Specifies the category of the point. */ category: any; /** * Specifies the value of the point. */ value: any; /** * Specifies the point value represented as a percentage. * Available only for the Donut, Pie, and 100% stacked charts. */ percentage?: number; /** * Specifies the cumulative point value on the stack. * Available only for the stackable series. */ stackValue?: number; /** * Specifies the sum of point values from the last `"runningTotal"` summary point onwards. * Available for the Waterfall series. */ runningTotal?: number; /** * Specifies the sum of all previous series values. * Available for the Waterfall series. */ total?: number; /** * Specifies the point series. */ series: any; }