scttcper / ngx-chartjs

Functional Chart.js wrapper for Angular
https://ngx-chartjs.vercel.app
MIT License
56 stars 12 forks source link

Height and width options being ignored #176

Closed nvernooy closed 2 years ago

nvernooy commented 2 years ago

I set the height option to 200, but the chart ignores it and sizes to fill the available space, any fix for this?

<div class="row">
    <div class="col">
        <ngx-chartjs [height]="200" [data]="chart" [options]="chart.options" type="doughnut">
        </ngx-chartjs>
    </div>
</div>

image

nvernooy commented 2 years ago

Nevermind got it https://github.com/reactchartjs/react-chartjs-2/issues/1029