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.

83 lines (82 loc) 2.58 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 point. */ export interface SeriesVisualArgs { /** * Specifies the category of the point. */ category: any; /** * Specifies a function that gets the default visual. */ createVisual: () => drawing.Element; /** * Specifies the center point of the segment. Available for the Donut and Pie series. */ center?: geometry.Point; /** * Provides the data item associated with the point. */ dataItem: any; /** * Specifies the end angle of the segment. Available for the Donut and Pie series. */ endAngle?: number; /** * Specifies the inner radius of the segment. Available for the Donut and Pie series. */ innerRadius?: number; /** * Defines the options for the point. */ options: any; /** * Specifies the point value represented as a percentage. * Available only for the Donut, Pie, and 100% stacked charts. */ percentage?: number; /** * Specifies the segment points. Available for the Donut and Pie series. */ points?: geometry.Point[]; /** * Specifies the segment radius. Available for the Donut and Pie series. */ radius?: number; /** * Specifies the rectangle that defines the normal position of the visual. */ rect: geometry.Rect; /** * Specifies the sum of point values from the last `"runningTotal"` summary point onwards. * Available for the Waterfall series. */ runningTotal?: number; /** * Specifies the instance of the Chart component. */ sender: ChartComponent; /** * Specifies the series to which the point belongs. */ series: any; /** * Specifies the start angle of the segment. Available for the Donut and Pie series. */ startAngle?: number; /** * Specifies the sum of all previous series values. * Available for the Waterfall series. */ total?: number; /** * Represents the value of the point. */ value: any; }