From 3f1a1a1b59f47646194bb33f4a88b2b37505840f Mon Sep 17 00:00:00 2001 From: Anton Vorobev Date: Wed, 30 Oct 2024 08:05:57 +0000 Subject: [PATCH] Pull request #5303: Feature/DXCF-5560 new web multiple scales add initial configuration to chart config Merge in DXCHARTS/dxchart5 from feature/DXCF-5560-new-web-multiple-scales-add-initial-configuration-to-chart-config to master * commit 'd61f1d3363a15347806f720afc457aa875d48a7c': [DXCF-5560] [Web] Multiple scales - add initial configuration to chart config // pr fix [DXCF-5560] [Web] Multiple scales - add initial configuration to chart config // init [DXCF-5560] [Web] Multiple scales - add initial configuration to chart config // init [DXCF-5560] [Web] Multiple scales - add initial configuration to chart config // init GitOrigin-RevId: 086937ac40e9ec386357e6a5d23d277816bbd0ec --- src/chart/chart.config.ts | 5 +++++ src/chart/inputhandlers/cross-event-producer.component.ts | 5 ----- src/chart/inputhandlers/hover-producer.component.ts | 5 ----- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/src/chart/chart.config.ts b/src/chart/chart.config.ts index 45cf8d6..98d03e4 100644 --- a/src/chart/chart.config.ts +++ b/src/chart/chart.config.ts @@ -115,6 +115,7 @@ export const getDefaultConfig = (): FullChartConfig => ({ histogram: { barCapSize: 1, }, + maxYAxisScalesAmount: 10, sortCandles: defaultSortCandles, }, yAxis: { @@ -984,6 +985,10 @@ export interface ChartConfigComponentsChart { selectedWidth: number; minCandlesOffset: number; histogram: ChartConfigComponentsHistogram; + /** + * The maximum amount of Y axis scales on a single chart + */ + maxYAxisScalesAmount: number; // optional because backward compability sortCandles?: (candles: Candle[]) => Candle[]; } diff --git a/src/chart/inputhandlers/cross-event-producer.component.ts b/src/chart/inputhandlers/cross-event-producer.component.ts index 7fedf81..bf093d0 100644 --- a/src/chart/inputhandlers/cross-event-producer.component.ts +++ b/src/chart/inputhandlers/cross-event-producer.component.ts @@ -1,8 +1,3 @@ -/* - * Copyright (C) 2019 - 2024 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/. - */ /* * Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. diff --git a/src/chart/inputhandlers/hover-producer.component.ts b/src/chart/inputhandlers/hover-producer.component.ts index 9f2d89c..ecd724c 100644 --- a/src/chart/inputhandlers/hover-producer.component.ts +++ b/src/chart/inputhandlers/hover-producer.component.ts @@ -1,8 +1,3 @@ -/* - * Copyright (C) 2019 - 2024 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/. - */ /* * Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.