一、html代码
二、js代码
①chart配置
chart: {
events: {
// 触发轮播函数
load: function(event) {
// console.log(1);
loop ();
},
},
renderTo: 'container',
type: 'column'
},
title: {
text: '猪只体温监测',
},
xAxis: {
categories: ['00:00', '00:01', '00:01', '00:03', '00:04','00:05']
},
yAxis: {
tickPositions: [0, 50, 100,150,200,250,300,350,400], // 指定竖轴坐标点的值
allowDecimals: false,
min: 0,
title: {
text: '猪只体温'
}
},
tooltip: {
shared