-
Notifications
You must be signed in to change notification settings - Fork 112
Open
Description
I'm stuck with a fixed width and height of 600px and 400px respectively no matter what the browser is narrowed to. The demos all seem to be responsive, but for some reason mine is stuck at 600px.
This is the resulting div for the chart after rendering:
This is my chart definition/options:
chart: {
backgroundColor: 'transparent',
marginTop: 10,
marginBottom: 50,
animation: false,
type: 'column'
},
title: { text: null },
scrollbar: {
enabled: true
},
reflow: true,
responsive: {
rules: [{
condition: {
maxWidth: 1000
},
chartOptions: {
legend: {
align: 'center',
verticalAlign: 'bottom',
layout: 'horizontal'
},
yAxis: {
labels: {
align: 'left',
x: 0,
y: -5
},
title: {
text: null
}
},
subtitle: {
text: null
}
}
}]
},
legend: {
enabled: false,
},
yAxis: {
min: 0,
max: maxval,
stackLabels: {
formatter: function () { return '$' + that.currencyPipe.transform(this.total, 'USD', true, '1.0-0'); }
},
title: { text: null },
labels: {
formatter: function () { return '$' + that.currencyPipe.transform(this.value, 'USD', true, '1.0-0'); }
}
},
tooltip: {
formatter: function () {
return '<b>' + this.series.name + '</b>: ' + that.currencyPipe.transform(this.point.y, 'USD', true, '1.0-0');
}
},
plotOptions: {
series: {
animation: false
},
column: {
borderWidth: 0,
stacking: 'normal',
events: {
legendItemClick: function () {
return false;
}
}
}
}
Anyone??
bdrazen
Metadata
Metadata
Assignees
Labels
No labels