Trying to set size of charts in ng2-charts
问题 I am trying to set the size of my charts. I have copy and pasted the ng2-chart example of the bar chart into my typescript file. If I play around with the canvas : <canvas baseChart width="100" height="100"> Nothing seems to happen with the size. It is always strechted to MAX. If I add some stylings : canvas { width: 50px; height: 50px; } It is also stretched to MAX. It seems that the chart is being displayed in some kind of iFrame which is confusing me more. Any help in how to set the size