Skip to content

Commit

Permalink
enhancement: add offset property for data series paint config
Browse files Browse the repository at this point in the history
  • Loading branch information
Keelaro1 authored and dxpm committed May 14, 2024
1 parent 385b21b commit a7f7728
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/chart/model/data-series.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ export interface DataSeriesPaintConfig {
color: string;
lineWidth: number;
hoveredLineWidth: number;
// vertical offset for the values to avoid intersection with other values at the same candle
offset: number;
// add this for TREND_HISTOGRAM study type
multiplyColors?:
| [NegativeColor, PositiveColor]
Expand All @@ -59,6 +61,7 @@ export const DEFAULT_DATA_SERIES_PAINT_CONFIG: DataSeriesPaintConfig = {
color: '#FF00FF',
lineWidth: 1,
hoveredLineWidth: 2,
offset: 0,
};

export const DEFAULT_DATA_SERIES_CONFIG: DataSeriesConfig = {
Expand Down

0 comments on commit a7f7728

Please sign in to comment.