We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a19d008 commit 8a0db60Copy full SHA for 8a0db60
src/index.ts
@@ -51,7 +51,7 @@ export default {
51
const width = chart.chartArea.width/chart.scales.x.max
52
const point = (x: number, y: number) => [
53
x * width + chart.chartArea.left,
54
- (chart.scales.y.max - y) * height + chart.chartArea.top,
+ Math.max(chart.scales.y.max - y, 0) * height + chart.chartArea.top,
55
];
56
57
// @ts-ignore
0 commit comments