<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Highcharts Example</title>
<script type="text/javascript" src="../js/jquery-1.7.2.min.js"></script>
<script src="../js/highcharts/highcharts.js"></script>
<script type="text/javascript">
$(function () {
$('#container').highcharts({
chart: {
type:'line'
},
title: {
text: '湛江对虾价格指数'
},
subtitle: {
text: '去头虾价格指数'
},
xAxis: {
type: 'datetime',
dateTimeLabelFormats: {
day: '%y-%m-%d'
}
},
yAxis: {
title: {
text: '指数值'
}
},
tooltip: {
enabled: true,
formatter: function() {
return '<b>'+ this.series.name +'</b><br/>'+ Highcharts.dateFormat('%Y-%m-%d', this.x) +': '+ this.y +'';
}
},
plotOptions: {
line: {
dataLabels: {
enabled: false
},
enableMouseTracking: true
}
},
series: [{
name: '去头虾价格指数',
data: [7.0, 6.9, 9.5, 14.5, 18.4, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6,7.0, 6.9, 9.5, 14.5, 18.4, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9],
pointStart: Date.UTC(2013, 0, 25),
pointInterval: 24 * 3600 * 1000 // one day
}]
});
});
</script>
<style>
<!--
-->
</style>
</head>
<body>
<div id="container" style="width: 1000px; height: 400px; margin: 0 auto"></div>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Highcharts Example</title>
<script type="text/javascript" src="../js/jquery-1.7.2.min.js"></script>
<script src="../js/highcharts/highcharts.js"></script>
<script type="text/javascript">
$(function () {
$('#container').highcharts({
chart: {
type:'line'
},
title: {
text: '湛江对虾价格指数'
},
subtitle: {
text: '去头虾价格指数'
},
xAxis: {
type: 'datetime',
dateTimeLabelFormats: {
day: '%y-%m-%d'
}
},
yAxis: {
title: {
text: '指数值'
}
},
tooltip: {
enabled: true,
formatter: function() {
return '<b>'+ this.series.name +'</b><br/>'+ Highcharts.dateFormat('%Y-%m-%d', this.x) +': '+ this.y +'';
}
},
plotOptions: {
line: {
dataLabels: {
enabled: false
},
enableMouseTracking: true
}
},
series: [{
name: '去头虾价格指数',
data: [7.0, 6.9, 9.5, 14.5, 18.4, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6,7.0, 6.9, 9.5, 14.5, 18.4, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9],
pointStart: Date.UTC(2013, 0, 25),
pointInterval: 24 * 3600 * 1000 // one day
}]
});
});
</script>
<style>
<!--
-->
</style>
</head>
<body>
<div id="container" style="width: 1000px; height: 400px; margin: 0 auto"></div>
</body>
</html>