/** * DevExtreme (viz/sparkline.d.ts) * Version: 21.1.7 * Build date: Thu Aug 07 2025 * * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ import { UserDefinedElement, } from '../core/element'; import { EventInfo, InitializedEventInfo, ChangedOptionInfo, } from '../events/index'; import DataSource, { DataSourceOptions, } from '../data/data_source'; import Store from '../data/abstract_store'; import { FileSavingEventInfo, ExportInfo, IncidentInfo, } from './core/base_widget'; import BaseSparkline, { BaseSparklineOptions, } from './sparklines/base_sparkline'; /** @public */ export type DisposingEvent = EventInfo; /** @public */ export type DrawnEvent = EventInfo; /** @public */ export type ExportedEvent = EventInfo; /** @public */ export type ExportingEvent = EventInfo & ExportInfo; /** @public */ export type FileSavingEvent = FileSavingEventInfo; /** @public */ export type IncidentOccurredEvent = EventInfo & IncidentInfo; /** @public */ export type InitializedEvent = InitializedEventInfo; /** @public */ export type OptionChangedEvent = EventInfo & ChangedOptionInfo; /** @public */ export type TooltipHiddenEvent = EventInfo; /** @public */ export type TooltipShownEvent = EventInfo; /** * @deprecated use Properties instead * @namespace DevExpress.viz */ export interface dxSparklineOptions extends BaseSparklineOptions { /** * @docid * @default 'arg' * @public */ argumentField?: string; /** * @docid * @default '#d7d7d7' * @public */ barNegativeColor?: string; /** * @docid * @default '#a9a9a9' * @public */ barPositiveColor?: string; /** * @docid * @notUsedInTheme * @public */ dataSource?: Array | Store | DataSource | DataSourceOptions | string; /** * @docid * @default '#666666' * @public */ firstLastColor?: string; /** * @docid * @default false * @public */ ignoreEmptyPoints?: boolean; /** * @docid * @default '#666666' * @public */ lineColor?: string; /** * @docid * @default 2 * @public */ lineWidth?: number; /** * @docid * @default '#d7d7d7' * @public */ lossColor?: string; /** * @docid * @default '#e55253' * @public */ maxColor?: string; /** * @docid * @default undefined * @public */ maxValue?: number; /** * @docid * @default '#e8c267' * @public */ minColor?: string; /** * @docid * @default undefined * @public */ minValue?: number; /** * @docid * @default '#ffffff' * @public */ pointColor?: string; /** * @docid * @default 4 * @public */ pointSize?: number; /** * @docid * @type Enums.VizPointSymbol * @default 'circle' * @public */ pointSymbol?: 'circle' | 'cross' | 'polygon' | 'square' | 'triangle'; /** * @docid * @default true * @public */ showFirstLast?: boolean; /** * @docid * @default false * @public */ showMinMax?: boolean; /** * @docid * @type Enums.SparklineType * @default 'line' * @public */ type?: 'area' | 'bar' | 'line' | 'spline' | 'splinearea' | 'steparea' | 'stepline' | 'winloss'; /** * @docid * @default 'val' * @public */ valueField?: string; /** * @docid * @default '#a9a9a9' * @public */ winColor?: string; /** * @docid * @default 0 * @public */ winlossThreshold?: number; } /** * @docid * @inherits BaseSparkline, DataHelperMixin * @namespace DevExpress.viz * @public */ export default class dxSparkline extends BaseSparkline { constructor(element: UserDefinedElement, options?: dxSparklineOptions) getDataSource(): DataSource; } /** @public */ export type Properties = dxSparklineOptions; /** @deprecated use Properties instead */ export type Options = dxSparklineOptions; /** @deprecated use Properties instead */ export type IOptions = dxSparklineOptions;