victorgarciaesgi / vue-chart-3

📊 A simple wrapper around Chart.js 3 for Vue 2 & 3

Home Page:https://vue-chart-3.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Canvas tag has incorrect attributes

Gudleiv opened this issue · comments

Hi!
Canvas has default height and width with incorrect attribute "attrs" in DOM
<canvas attrs="[object Object]" width="188" height="150"></canvas>

This fix helped me #12

Taht's weird, for me the canvas attributes are well rendered

<canvas id="doughnut-chart" width="720" height="720"></canvas>

@Gudleiv Ok found the problem https://v3.vuejs.org/guide/migration/render-function-api.html#_2-x-syntax-3.

I need to make 2 different render function for Vue 2 & 3

Try 0.3.6 it should be good!

Issue solved, thank you for quick response!