Skip to content

Commit

Permalink
fix #1832; add check if data empty for annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
junedchhipa committed Sep 24, 2024
1 parent 6de93dd commit d5cde8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/annotations/Annotations.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ export default class Annotations {

drawAxesAnnotations() {
const w = this.w
if (w.globals.axisCharts) {
if (w.globals.axisCharts && w.globals.dataPoints) {
// w.globals.dataPoints check added to fix #1832
let yAnnotations = this.yAxisAnnotations.drawYAxisAnnotations()
let xAnnotations = this.xAxisAnnotations.drawXAxisAnnotations()
let pointAnnotations = this.pointsAnnotations.drawPointAnnotations()
Expand Down

0 comments on commit d5cde8c

Please sign in to comment.