How do I set a chart's height using ng2-charts? I'm making a line chart, just like the demo on the ng2-charts site.
I've searched the documentation for ng2-charts and chart.js. In chart.js it looks like you set a height property on the canvas element like <canvas height="400">
, but that element is obscured by the ng2-charts component.
Figured it out.
If responsive: true
and maintainAspectRatio: false
settings are set, you can then set the css height property of the <base-chart>
element.