Skip to content

Commit

Permalink
Pull request #5295: Feature/DXREQ-23708
Browse files Browse the repository at this point in the history
Merge in DXCHARTS/dxchart5 from feature/DXREQ-23708 to master

* commit '64e2ff74850998c5a77572225ee45ecc452716a6': (65 commits)
  DXCF-5640 // feat: added missing build scripts to demo dockerfile
  dxreq-23708 // fix: added bash to alpine linux image
  dxreq-23708 // chore: reordered packages in monorepo
  dxreq-23708 // feat: last updates to make sure everything works
  DXCF-5507 // feat: refactored mock events data provider for better readability
  DXCF-5507 // feat: updated IndicatorTemplatesProvider docs
  DXCF-5507 // feat: fixed wrong imports
  DXCF-5507 // chore: updated imports and code to support last changes
  DXCF-5507 // chore: updated package versions
  DXCF-5507 // chore: updated imports and code to support last changes
  DXCF-5507 // chore: updated package versions
  DXCF-5507 // feat: added info about +14days in trading sessions provider article
  DXCF-5507 // feat: added info about priceType and priceIncrements to mock chart data impl
  DXCF-5507 // feat: added docs about updateCallback
  DXCF-5507 // feat: added docs about updateCallback
  DXCF-5507 // feat: added API reference for each provider page
  DXCF-5507 // feat: small updates about providers
  DXCF-5507 // feat: added docs about trading sessions provider
  DXCF-5507 // feat: added basic info about events and news data providers
  DXCF-5507 // feat: added docs for a bunch of providers
  ...

GitOrigin-RevId: b1b866e289b385795e7f9d58f9e59c13fdf5d3da
  • Loading branch information
disyakidneyshot authored and dxcity committed Nov 19, 2024
1 parent e08d646 commit 97895b1
Show file tree
Hide file tree
Showing 173 changed files with 274 additions and 214 deletions.
8 changes: 4 additions & 4 deletions docs/codesandbox/cli/model/html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface HTMLImport {

export const isHTMLFile = (filepath: string) => getFileName(filepath)?.includes('html') ?? false;

export const combineRelativeParsedImportToAbsolute = (htmlFile: string, originalFilepath: string) =>
export const combineRelativeParsedImportToAbsolute = (htmlFile: string, originalFilepath: string) =>
path.resolve(htmlFile, `../${originalFilepath}`);

export const parseHTMLImports = (htmlFilepath: string, html: string): HTMLImport[] => {
Expand Down Expand Up @@ -87,9 +87,9 @@ export const HTMLFilesToCSBPayload = (htmlFiles: string[]): CodeSandboxPayload =

const htmlContent = getFileContent(htmlFile);
const parsedHTMLImports = parseHTMLImports(htmlFile, htmlContent);
const csbPayloadFromHTMLImports = filesToCSBPayload(parsedHTMLImports.map(i =>
combineRelativeParsedImportToAbsolute(htmlFile, i.originalFilepath)
));
const csbPayloadFromHTMLImports = filesToCSBPayload(
parsedHTMLImports.map(i => combineRelativeParsedImportToAbsolute(htmlFile, i.originalFilepath)),
);
htmlCSBPayload = concatCSBPayload(htmlCSBPayload, csbPayloadFromHTMLImports);

const htmlContentWithNewImports = replaceHTMLImports(htmlContent, parsedHTMLImports);
Expand Down
5 changes: 5 additions & 0 deletions src/chart/__tests__/chart.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* 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/.
*/
import './env';
import { createChart } from '../../index';
import { generateCandlesDataTS } from '../utils/candles-generator-ts.utils';
Expand Down
5 changes: 5 additions & 0 deletions src/chart/__tests__/env.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* 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/.
*/
/* @see https://jestjs.io/docs/29.4/manual-mocks#mocking-methods-which-are-not-implemented-in-jsdom */
Object.defineProperty(window, 'matchMedia', {
writable: true,
Expand Down
5 changes: 5 additions & 0 deletions src/chart/__tests__/model/date-time.formatter.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* 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/.
*/
import '../env';
import { formatDate, getShortDays, getShortMonths } from '../../model/date-time.formatter';
import { getDefaultConfig } from '../../chart.config';
Expand Down
2 changes: 1 addition & 1 deletion src/chart/animation/canvas-animation.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 - 2023 Devexperts Solutions IE Limited
* 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/.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/chart/animation/types/animation.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 - 2023 Devexperts Solutions IE Limited
* 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/.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/chart/animation/types/color-alpha-animation.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 - 2023 Devexperts Solutions IE Limited
* 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/.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/chart/animation/types/color-transition-animation.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 - 2023 Devexperts Solutions IE Limited
* 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/.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/chart/animation/types/viewport-movement-animation.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 - 2023 Devexperts Solutions IE Limited
* 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/.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/chart/animation/viewport-model-animation.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 - 2023 Devexperts Solutions IE Limited
* 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/.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/chart/canvas/canvas-bounds-container.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 - 2023 Devexperts Solutions IE Limited
* 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/.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/chart/canvas/canvas-chart-html.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 - 2023 Devexperts Solutions IE Limited
* 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/.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/chart/canvas/chart-elements.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 - 2023 Devexperts Solutions IE Limited
* 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/.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/chart/canvas/cursor.handler.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 - 2023 Devexperts Solutions IE Limited
* 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/.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/chart/canvas/layout-creator.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 - 2023 Devexperts Solutions IE Limited
* 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/.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/chart/canvas/y-axis-bounds.container.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 - 2023 Devexperts Solutions IE Limited
* 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/.
*/
Expand Down
5 changes: 5 additions & 0 deletions src/chart/chart.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* 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/.
*/
import ChartBootstrap from './bootstrap';
import { BarType, PartialChartConfig } from './chart.config';
import { CandleSeries } from './components/chart/chart.component';
Expand Down
2 changes: 1 addition & 1 deletion src/chart/components/chart/basic-scale.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 - 2023 Devexperts Solutions IE Limited
* 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/.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 - 2023 Devexperts Solutions IE Limited
* 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/.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/chart/components/chart/chart-area-pan.handler.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 - 2023 Devexperts Solutions IE Limited
* 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/.
*/
Expand Down
8 changes: 6 additions & 2 deletions src/chart/components/chart/chart-base.model.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 - 2023 Devexperts Solutions IE Limited
* 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/.
*/
Expand Down Expand Up @@ -50,7 +50,11 @@ export class ChartBaseModel<T extends BaseType = 'point'> {
* @param timestamp
*/
// TODO think how to make this function like candleFromX
public dataFromTimestamp(timestamp: Timestamp, shouldExtrapolate: boolean = true, selectedDataPoints: DataPoint<T>[] = this.mainDataPoints): VisualPoint<T> {
public dataFromTimestamp(
timestamp: Timestamp,
shouldExtrapolate: boolean = true,
selectedDataPoints: DataPoint<T>[] = this.mainDataPoints,
): VisualPoint<T> {
const result = searchCandleIndex(timestamp, shouldExtrapolate, selectedDataPoints, this.period);
return this.dataFromIdx(result.index);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 - 2023 Devexperts Solutions IE Limited
* 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/.
*/
Expand Down
17 changes: 11 additions & 6 deletions src/chart/components/chart/fake-visual-candle.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
import { Candle, nameDirection } from "../../model/candle.model";
import { DataSeriesPoint, VisualSeriesPoint } from "../../model/data-series.model";
import { Index, Pixel, Unit } from "../../model/scaling/viewport.model";
import VisualCandle from "../../model/visual-candle";
import { DEFAULT_PERIOD, fakeCandle, fakeDataPoint } from "./fake-candles";
/*
* 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/.
*/
import { Candle, nameDirection } from '../../model/candle.model';
import { DataSeriesPoint, VisualSeriesPoint } from '../../model/data-series.model';
import { Index, Pixel, Unit } from '../../model/scaling/viewport.model';
import VisualCandle from '../../model/visual-candle';
import { DEFAULT_PERIOD, fakeCandle, fakeDataPoint } from './fake-candles';

/**
* Generates fake candle for left and right "out of data range" zones.
Expand Down Expand Up @@ -68,4 +73,4 @@ export const fakeVisualPoint = (
x = firstCandle.centerUnit - offsetFromFirst;
}
return new VisualSeriesPoint(x, candle.close);
};
};
2 changes: 1 addition & 1 deletion src/chart/components/chart/price.formatter.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 - 2023 Devexperts Solutions IE Limited
* 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/.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/chart/components/chart/secondary-chart-colors-pool.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 - 2023 Devexperts Solutions IE Limited
* 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/.
*/
Expand Down
17 changes: 3 additions & 14 deletions src/chart/components/cross_tool/cross-tool.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 - 2023 Devexperts Solutions IE Limited
* 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/.
*/
Expand Down Expand Up @@ -63,22 +63,11 @@ export class CrossToolComponent extends ChartBaseElement {
private registerDefaultDrawerTypes() {
this.registerCrossToolTypeDrawer(
'cross-and-labels',
new CrossAndLabelsDrawerType(
this.config,
this.canvasBoundsContainer,
this.paneManager,
() => true,
),
new CrossAndLabelsDrawerType(this.config, this.canvasBoundsContainer, this.paneManager, () => true),
);
this.registerCrossToolTypeDrawer(
'just-labels',
new CrossAndLabelsDrawerType(
this.config,
this.canvasBoundsContainer,
this.paneManager,
() => true,
true,
),
new CrossAndLabelsDrawerType(this.config, this.canvasBoundsContainer, this.paneManager, () => true, true),
);
this.registerCrossToolTypeDrawer('none', new NoneDrawerType());
}
Expand Down
2 changes: 1 addition & 1 deletion src/chart/components/cross_tool/cross-tool.drawer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 - 2023 Devexperts Solutions IE Limited
* 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/.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/chart/components/cross_tool/cross-tool.model.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 - 2023 Devexperts Solutions IE Limited
* 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/.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 - 2023 Devexperts Solutions IE Limited
* 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/.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/chart/components/cross_tool/types/none.drawer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 - 2023 Devexperts Solutions IE Limited
* 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/.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 - 2023 Devexperts Solutions IE Limited
* 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/.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 - 2023 Devexperts Solutions IE Limited
* 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/.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 - 2023 Devexperts Solutions IE Limited
* 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/.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* 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/.
*/
import { DrawingManager } from '../../drawers/drawing-manager';
import { CanvasModel } from '../../model/canvas.model';
import { ChartBaseElement } from '../../model/chart-base-element';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* 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/.
*/
import { Drawer } from '../../drawers/drawing-manager';
import { CanvasModel } from '../../model/canvas.model';
import { DynamicObjectsModel } from './dynamic-objects.model';
Expand Down
5 changes: 5 additions & 0 deletions src/chart/components/dynamic-objects/dynamic-objects.model.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* 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/.
*/
import { BehaviorSubject } from 'rxjs';
import { ChartBaseElement } from '../../model/chart-base-element';
import { LinkedList, ListNode } from '../../utils/linkedList.utils';
Expand Down
2 changes: 1 addition & 1 deletion src/chart/components/events/events-hit-test.drawer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 - 2023 Devexperts Solutions IE Limited
* 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/.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/chart/components/events/events.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 - 2023 Devexperts Solutions IE Limited
* 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/.
*/
Expand Down
3 changes: 1 addition & 2 deletions src/chart/components/events/events.drawer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 - 2023 Devexperts Solutions IE Limited
* 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/.
*/
Expand Down Expand Up @@ -201,7 +201,6 @@ export class EventsDrawer implements Drawer {
ctx.strokeStyle = this.config.colors.xAxis.backgroundColor;
ctx.fillRect(x - width / 2, xAxisBounds.y + 1, width, xAxisBounds.height - 1);


ctx.fillStyle = this.config.colors.events[event.type].color;
ctx.fillText(labelText, x - width / 2, y);
}
Expand Down
2 changes: 1 addition & 1 deletion src/chart/components/events/events.model.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 - 2023 Devexperts Solutions IE Limited
* 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/.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/chart/components/grid/grid.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 - 2023 Devexperts Solutions IE Limited
* 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/.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/chart/components/grid/grid.drawer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 - 2023 Devexperts Solutions IE Limited
* 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/.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/chart/components/high_low/high-low.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 - 2023 Devexperts Solutions IE Limited
* 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/.
*/
Expand Down
Loading

0 comments on commit 97895b1

Please sign in to comment.