Closed howtimeflies-io closed 6 years ago
From Highcharts document:
The chart's position in the HTML page is defined by the position of the container div. Height and width is set either by setting a height and width of the container div, or by setting the chart.height and chart.width Highcharts options.
To resolve the problem, we should set the chart container's height explicitely.
.chart-container {
height: 280px;
}
@media (min-width: 576px) {
.chart-container {
height: 400px;
}
}
Another quick solution: https://github.com/gevgeny/angular2-highcharts/issues/191#issuecomment-311711325
In our case, it would be
ngx-highchart { display: block }
With this solution, the explicit chart container height styles above still apply.
Fixed in Version 1.0.2