File tree 2 files changed +12
-8
lines changed
2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,16 @@ export class DefaultFillFormatter implements IFillFormatter {
15
15
} else {
16
16
let max , min ;
17
17
18
- if ( data . getYMax ( ) > 0 ) max = 0 ;
19
- else max = chartMaxY ;
20
- if ( data . getYMin ( ) < 0 ) min = 0 ;
21
- else min = chartMinY ;
18
+ if ( data . getYMax ( ) > 0 ) {
19
+ max = 0 ;
20
+ } else {
21
+ max = chartMaxY ;
22
+ }
23
+ if ( data . getYMin ( ) < 0 ) {
24
+ min = 0 ;
25
+ } else {
26
+ min = chartMinY ;
27
+ }
22
28
23
29
fillMin = dataSet . getYMin ( ) >= 0 ? min : max ;
24
30
}
Original file line number Diff line number Diff line change @@ -7,9 +7,7 @@ import { LineDataProvider } from '../interfaces/dataprovider/LineDataProvider';
7
7
*
8
8
* @author Philipp Jahoda
9
9
*/
10
- export interface IFillFormatter
11
- {
12
-
10
+ export interface IFillFormatter {
13
11
/**
14
12
* Returns the vertical (y-axis) position where the filled-line of the
15
13
* LineDataSet should end.
@@ -18,5 +16,5 @@ export interface IFillFormatter
18
16
* @param dataProvider
19
17
* @return
20
18
*/
21
- getFillLinePosition ( dataSet : ILineDataSet , dataProvider : LineDataProvider ) ;
19
+ getFillLinePosition ( dataSet : ILineDataSet , dataProvider : LineDataProvider ) ;
22
20
}
You can’t perform that action at this time.
0 commit comments