File tree 1 file changed +3
-3
lines changed
src/chart/drawers/data-series-drawers
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
2
+ * Copyright (C) 2019 - 2025 Devexperts Solutions IE Limited
3
3
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4
4
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
*/
6
6
import { ChartModel } from '../../components/chart/chart.model' ;
7
7
import { DataSeriesModel , VisualSeriesPoint } from '../../model/data-series.model' ;
8
8
import { unitToPixels } from '../../model/scaling/viewport.model' ;
9
9
import { floorToDPR } from '../../utils/device/device-pixel-ratio.utils' ;
10
- import { round } from '../../utils/math.utils' ;
10
+ import { floor } from '../../utils/math.utils' ;
11
11
import { ChartDrawerConfig , SeriesDrawer } from '../data-series.drawer' ;
12
12
13
13
/**
@@ -27,7 +27,7 @@ export class ColorCandleDrawer implements SeriesDrawer {
27
27
const config = model . getPaintConfig ( idx ) ;
28
28
ctx . fillStyle = drawerConfig . singleColor ?? config . color ;
29
29
points . forEach ( p => {
30
- const visualCandle = this . chartModel . getVisualCandle ( round ( p . centerUnit ) ) ;
30
+ const visualCandle = this . chartModel . getVisualCandle ( floor ( p . centerUnit ) ) ;
31
31
const value = p . close ;
32
32
if ( visualCandle && value === 1 ) {
33
33
const zoomX = this . chartModel . scale . zoomX ;
You can’t perform that action at this time.
0 commit comments