我在引導區div內渲染highchart。事情是它不加載。當我刪除bootrap類它的工作正常。我如何在引導類的div中渲染圖表。Highchart不顯示內部引導區div
$('#container').highcharts({
chart: {
type: 'pie'
},
title: {
text: 'Container Utilization'
},
xAxis: {
type: 'category'
},
credits: {
enabled: false
},
legend: {
enabled: false
},
plotOptions: {
series: {
borderWidth: 0,
dataLabels: {
enabled: true,
}
}
},
series: [{
name: 'Utilization',
colorByPoint: true,
data: [{
name: 'Utilized',
y: 5,
drilldown: 'u'
}, {
name: 'Unutilized',
y: 4,
drilldown: 'un'
}]
}],
})
this
<div id="container" class="col-md-6"></div>
你可以創建一個活的小提琴演示,以獲得更多的理解? – TechnoCrat
我可以編輯包含「col-md-6」類的css風格嗎? –
嘗試像這樣在div中設置樣式。
這應該可以解決您的問題。這對我有效。 – TechnoCrat