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.

71 lines (70 loc) 6.63 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2024 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ /** * The series type. * * The supported values are: * - `"area"`&mdash;Displays the data as continuous lines that show trends over time, evenly distributed along the category field. * - `"bar"`&mdash;Displays the data as sets of horizontal bars that show the relationship between individual items and the whole category. * - `"boxPlot"`&mdash;Displays the data as a box-and-whisker diagram, which shows the distribution of values in a series. * - `"bubble"`&mdash;Displays the data as bubbles, where each bubble represents a value from the series data. * - `"bullet"`&mdash;Displays the data as vertical bars that show the performance measure, and markers that show the comparative measure. * - `"candlestick"`&mdash;Displays the data as candlesticks, which show the open, close, high, and low values of a series. * - `"column"`&mdash;Displays the data as sets of vertical bars that show the relationship between individual items and the whole category. * - `"donut"`&mdash;Displays the data as a series of rings that are sliced depending on the value. * - `"exponentialTrendline"`&mdash;Displays an exponential [trendline]({% slug trendlines_chart_charts %}#toc-exponential-trendline) for the specified parent series. * - `"funnel"`&mdash;Displays the data as a funnel, which is useful for sales data visualization. * - `"heatmap"`&mdash;Displays the data as a heatmap, which is useful for comparing values in a matrix. * - `"horizontalWaterfall"`&mdash;Displays the data as a horizontal waterfall chart, which is useful for comparing positive and negative values over a period. * - `"line"`&mdash;Displays the data as continuous lines that connect data points evenly distributed along the category field. * - `"linearTrendline"`&mdash;Displays a linear [trendline]({% slug trendlines_chart_charts %}#toc-linear-trendline) for the specified parent series. * - `"logarithmicTrendline"`&mdash;Displays a logarithmic [trendline]({% slug trendlines_chart_charts %}#toc-logarithmic-trendline) for the specified parent series. * - `"movingAverageTrendline"`&mdash;Displays a moving average [trendline]({% slug trendlines_chart_charts %}#toc-moving-average-trendline) for the specified parent series. * - `"ohlc"`&mdash;Displays the data as OHLC (open-high-low-close) bars, which show the open, high, low, and close values of a series. * - `"pie"`&mdash;Displays the data as a series of pie slices, which show the contribution of each value to a total. * - `"polarArea"`&mdash;Displays the data as a series of polar area segments, which show the contribution of each value to a total. * - `"polarLine"`&mdash;Displays the data as continuous lines that connect data points evenly distributed along the category field. * - `"polarScatter"`&mdash;Displays the data as points distributed in a polar coordinate system. * - `"polynomialTrendline"`&mdash;Displays a polynomial [trendline]({% slug trendlines_chart_charts %}#toc-polynomial-trendline) for the specified parent series. * - `"powerTrendline"`&mdash;Displays a power [trendline]({% slug trendlines_chart_charts %}#toc-power-trendline) for the specified parent series. * - `"pyramid"`&mdash;Displays the data as a pyramid divided in segments proportional to each value. * - `"radarArea"`&mdash;Displays the data as a series of radar area segments, which show the contribution of each value to a total. * - `"radarColumn"`&mdash;Displays the data as sets of vertical bars that show the relationship between individual items and the whole category. * - `"radarLine"`&mdash;Displays the data as continuous lines that connect data points evenly distributed along the category field. * - `"rangeArea"`&mdash;Displays the data as a series of range area segments, which show the contribution of each value to a total. * - `"rangeBar"`&mdash;Displays the data as sets of horizontal bars that show the relationship between individual items and the whole category. * - `"rangeColumn"`&mdash;Displays the data as sets of vertical bars that show the relationship between individual items and the whole category. * - `"scatter"`&mdash;Displays the data as points that show the relationship between two variables. * - `"scatterLine"`&mdash;Displays the data as continuous lines that connect data points evenly distributed along the category field. * - `"verticalArea"`&mdash;Displays the data as continuous lines that show trends over time, evenly distributed along the category field. * - `"verticalBoxPlot"`&mdash;Displays the data as a box-and-whisker diagram, which shows the distribution of values in a series. * - `"verticalBullet"`&mdash;Displays the data as vertical bars that show the performance measure, and markers that show the comparative measure. * - `"verticalLine"`&mdash;Displays the data as continuous lines that connect data points evenly distributed along the category field. * - `"verticalRangeArea"`&mdash;Displays the data as a series of range area segments, which show the contribution of each value to a total. * - `"waterfall"`&mdash;Displays the data as a waterfall chart, which is useful for comparing positive and negative values over a period. * * @example * ```ts * import { Component } from '@angular/core'; * import { SeriesType } from '@progress/kendo-angular-charts'; * * _@Component({ * selector: 'my-app', * template: ` * <kendo-chart> * <kendo-chart-series> * <kendo-chart-series-item [type]="seriesType" [data]="[1, 2, 3]"> * </kendo-chart-series-item> * </kendo-chart-series> * </kendo-chart> * ` * }) * class AppComponent { * public seriesType: SeriesType = "verticalLine"; * } * * ``` */ export type SeriesType = 'area' | 'bar' | 'boxPlot' | 'bubble' | 'bullet' | 'candlestick' | 'column' | 'donut' | 'exponentialTrendline' | 'funnel' | 'pyramid' | 'heatmap' | 'horizontalWaterfall' | 'line' | 'linearTrendline' | 'logarithmicTrendline' | 'movingAverageTrendline' | 'ohlc' | 'pie' | 'polarArea' | 'polarLine' | 'polarScatter' | 'polynomialTrendline' | 'powerTrendline' | 'radarArea' | 'radarColumn' | 'radarLine' | 'rangeArea' | 'rangeBar' | 'rangeColumn' | 'scatter' | 'scatterLine' | 'verticalArea' | 'verticalBoxPlot' | 'verticalBullet' | 'verticalLine' | 'verticalRangeArea' | 'waterfall';