【发布时间】:2020-06-23 21:44:32
【问题描述】:
我使用 highcharts 在 bootstrap 4 列中显示日期时间类型图表,如下所示:
HTML:
<section>
<div class="container">
<div class="row">
<div class="col-md-8">
<div id="container" style="height: 400px"></div>
</div>
<div class="col-md-4">
Right Column
</div>
</div>
</div>
</section>
JS:
Highcharts.chart('container', {
chart: {
type: 'area'
},
xAxis: {
type: 'datetime',
},
plotOptions: {
series: {
fillOpacity: 0.1
}
},
series: [{
data: [{
"x": 1592501154000,
"y": 14520000
}, {
"x": 1592587554000,
"y": 14000000
}, {
"x": 1592673954000,
"y": 14800000
}, {
"x": 1592760354000,
"y": 10000000
}, {
"x": 1592846754000,
"y": 14000000
}, {
"x": 1592933154000,
"y": 14000000
}, {
"x": 1593019554000,
"y": 14000000
}]
}],
});
但在行动中,highcharts 不显示真实(即:7 天数据)结果列。
我该如何解决这个问题?
演示Here
【问题讨论】:
标签: html jquery twitter-bootstrap highcharts bootstrap-4