Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/view/OverlayView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,11 @@ export default class OverlayView<C extends Axis = YAxis> extends View<C> {
const yAxis = pane.getYAxisComponentById() as unknown as Nullable<YAxis>
const xAxis = chart.getXAxisPane().getXAxisComponent()
const bounding = widget.getBounding()
return o.createPointFigures?.({ chart, overlay: o, coordinates, bounding, xAxis, yAxis }) ?? []
try {
return o.createPointFigures?.({ chart, overlay: o, coordinates, bounding, xAxis, yAxis }) ?? []
} catch {
return []
}
}

protected drawDefaultFigures(ctx: CanvasRenderingContext2D, overlay: OverlayImp, coordinates: Coordinate[]): void {
Expand Down
6 changes: 5 additions & 1 deletion src/view/OverlayXAxisView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ export default class OverlayXAxisView extends OverlayYAxisView<XAxis> {
const yAxis = pane.getYAxisComponentById() as unknown as Nullable<YAxis>
const xAxis = chart.getXAxisPane().getXAxisComponent()
const bounding = widget.getBounding()
return o.createXAxisFigures?.({ chart, overlay: o, coordinates, bounding, xAxis, yAxis }) ?? []
try {
return o.createXAxisFigures?.({ chart, overlay: o, coordinates, bounding, xAxis, yAxis }) ?? []
} catch {
return []
}
}
}
6 changes: 5 additions & 1 deletion src/view/OverlayYAxisView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ export default class OverlayYAxisView<C extends Axis = YAxis> extends OverlayVie
const yAxis = pane.getYAxisComponentById() as unknown as Nullable<YAxis>
const xAxis = chart.getXAxisPane().getXAxisComponent()
const bounding = widget.getBounding()
return overlay.createYAxisFigures?.({ chart, overlay, coordinates, bounding, xAxis, yAxis }) ?? []
try {
return overlay.createYAxisFigures?.({ chart, overlay, coordinates, bounding, xAxis, yAxis }) ?? []
} catch {
return []
}
}
}