How can i change the background color in angular2-highcharts? i my component i have:
chart: any;
saveChart(chart) {
this.chart = chart;
}
constructor(
private eventManager: EventManager,
private locationService: LocationService,
private route: ActivatedRoute,
private alertService: AlertService
) {
this.options = {
title: { text: 'Senaste dygnet' },
xAxis: {
type: 'datetime',
title: {
text: 'Tid'
}
},
yAxis: {
title: {
text: 'Temperatur'
}
},
series: [{
name: 'Vattentemperatur',
data: []
}]
};
}
template:
<chart [options]="options" (load)="saveChart($event.context)"></chart>
when i do this.chart.backgroundColor= "#000000"; nothing happens.