Skip to content

In some cases property allLabels is undefined #255

Description

@marten-cz

We found this issue when using amcharts-react. The problem is in this method when the a would be undefined

    redrawLabels: function() {
        this.labels = [];
        var a = this.allLabels;
        this.createLabelsSet();
        var b;
        for (b = 0; b < a.length; b++)
            this.drawLabel(a[b])
    },

Fix like this will solve the issue

var a = this.allLabels || [];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions