Skip to content

Commit 8a0db60

Browse files
committed
first draft
1 parent a19d008 commit 8a0db60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default {
5151
const width = chart.chartArea.width/chart.scales.x.max
5252
const point = (x: number, y: number) => [
5353
x * width + chart.chartArea.left,
54-
(chart.scales.y.max - y) * height + chart.chartArea.top,
54+
Math.max(chart.scales.y.max - y, 0) * height + chart.chartArea.top,
5555
];
5656

5757
// @ts-ignore

0 commit comments

Comments
 (0)