Skip to content
This repository was archived by the owner on Nov 25, 2021. It is now read-only.
This repository was archived by the owner on Nov 25, 2021. It is now read-only.

ERROR TypeError: Cannot read property 'minBarLength' of undefined #58

@diogopaludo

Description

@diogopaludo

Since updating Chart.js and chartjs-chart-box-and-violin-plot I'm getting this error:

DadosComponent.html:37 ERROR TypeError: Cannot read property 'minBarLength' of undefined
    at ChartElement.calculateBarValuePixels (Chart.js:5042)
    at ChartElement._updateElementGeometry (Chart.js:4937)
    at ChartElement._updateElementGeometry (Chart.BoxPlot.js:1052)
    at ChartElement.updateElement (Chart.js:4922)
    at ChartElement.updateElement (Chart.BoxPlot.js:992)
    at ChartElement.update (Chart.js:4895)
    at ChartElement._update (Chart.js:3831)
    at ChartElement.reset (Chart.js:3733)
    at Chart.js:9638
    at Object.each (Chart.js:2227)

I'm using this in a Angular project. These are the versions:

  • "chart.js": "^2.9.2",
  • "chartjs-chart-box-and-violin-plot": "^2.1.0",
  • "@types/chart.js": "^2.8.11",

Is this a version compatibility problem with Chart.js? Should I downgrade for now?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions