@devexperts/dxcharts-lite
Version:
41 lines (40 loc) • 1.94 kB
TypeScript
/*
* Copyright (C) 2019 - 2026 Devexperts Solutions IE Limited
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import { BarTypes, YAxisLabelAppearanceType, YAxisLabelMode } from '../chart.config';
export type DataSeriesType = 'POINTS' | 'TREND_POINTS' | 'LINEAR' | 'HISTOGRAM' | 'TREND_HISTOGRAM' | 'DIFFERENCE' | 'TEXT' | 'ABOVE_CANDLE_TEXT' | 'BELOW_CANDLE_TEXT' | 'ABOVE_CANDLE_TRIANGLE' | 'TRIANGLE' | 'COLOR_CANDLE' | 'RECTANGULAR' | 'EMA_CLOUD_LINE' | 'LINEAR_TREND' | 'SQUEEZE_POINTS' | 'SUPERTREND' | keyof BarTypes | string;
export interface DataSeriesConfig {
paintConfig: Array<DataSeriesPaintConfig>;
visible: boolean;
additionalVisibilityPredicatesMap?: any;
highLowActive: boolean;
type: DataSeriesType;
/**
* 'viewport' data-series label will show last visible on the screen series value.
* 'series' data-series label will show last overall series value (even if not visible).
*/
labelLastValue: 'series' | 'viewport';
labelMode: YAxisLabelMode;
labelAppearanceType: YAxisLabelAppearanceType;
labelPaddingBottom?: number;
labelPaddingTop?: number;
labelPaddingEnd?: number;
}
type NegativeColor = string;
type PositiveColor = string;
type NegativeAndDownColor = string;
type NegativeAndUpColor = string;
type PositiveAndDownColor = string;
type PositiveAndUpColor = string;
export interface DataSeriesPaintConfig {
color: string;
lineWidth: number;
hoveredLineWidth: number;
offset: number;
multiplyColors?: [NegativeColor, PositiveColor] | [NegativeAndDownColor, NegativeAndUpColor, PositiveAndDownColor, PositiveAndUpColor];
}
export declare const DEFAULT_DATA_SERIES_PAINT_CONFIG: DataSeriesPaintConfig;
export declare const DEFAULT_DATA_SERIES_CONFIG: DataSeriesConfig;
export {};