Apexcharts.js: Cannot read property 'yRatio' of null

Created on 24 Oct 2020  路  2Comments  路  Source: apexcharts/apexcharts.js

Bug report

Codepen

https://codesandbox.io/s/vue-yratio-issue-with-treemap-dmct4

Explanation

I wanted to create a Vue treemap chart from the example in https://apexcharts.com/vue-chart-demos/treemap-charts/distributed/.

If you look at the codepen, you can see that there is the following error:
Cannot read property 'yRatio' of null

If you simply change the type of the chart to something like bar, it will work ...

Most helpful comment

@mlapeyre3 Please ensure that you are using the current version 3.22. Treemap was added in version 3.21.

Release: 3.21.0

In your example you are using version 3.19.

"apexcharts": "3.19.3",

Please let me know if a npm update apexcharts helped.

All 2 comments

@mlapeyre3 Please ensure that you are using the current version 3.22. Treemap was added in version 3.21.

Release: 3.21.0

In your example you are using version 3.19.

"apexcharts": "3.19.3",

Please let me know if a npm update apexcharts helped.

Yes, upgrading to 3.21 will fix it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RyanMooreOPS picture RyanMooreOPS  路  16Comments

GalacticSun picture GalacticSun  路  29Comments

thellimist picture thellimist  路  15Comments

CheyenneForbes picture CheyenneForbes  路  17Comments

LucaCorcella picture LucaCorcella  路  14Comments