Skip to content

Commit 1a27e2d

Browse files
committed
chore: lint
1 parent d8efef1 commit 1a27e2d

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

src/charting/formatter/DefaultFillFormatter.ts

+10-4
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,16 @@ export class DefaultFillFormatter implements IFillFormatter {
1515
} else {
1616
let max, min;
1717

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+
}
2228

2329
fillMin = dataSet.getYMin() >= 0 ? min : max;
2430
}

src/charting/formatter/IFillFormatter.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ import { LineDataProvider } from '../interfaces/dataprovider/LineDataProvider';
77
*
88
* @author Philipp Jahoda
99
*/
10-
export interface IFillFormatter
11-
{
12-
10+
export interface IFillFormatter {
1311
/**
1412
* Returns the vertical (y-axis) position where the filled-line of the
1513
* LineDataSet should end.
@@ -18,5 +16,5 @@ export interface IFillFormatter
1816
* @param dataProvider
1917
* @return
2018
*/
21-
getFillLinePosition( dataSet: ILineDataSet, dataProvider: LineDataProvider);
19+
getFillLinePosition(dataSet: ILineDataSet, dataProvider: LineDataProvider);
2220
}

0 commit comments

Comments
 (0)