Ⅰ html鎬庝箞鐢╦s鐗規晥鍋氭姌綰垮浘錛
浣跨敤鍘熺敓js鑷宸卞啓鎴杍s搴擄紙妗嗘灦錛夐兘鏄鍙浠ョ殑錛岀敱浜庣洰鍓岺TML5騫朵笉鏄鎵鏈夌殑嫻忚堝櫒閮藉畬緹庢敮鎸侊紝浣跨敤鍏煎規ф瘮杈冨ソ鐨刯s搴撴槸涓涓嶉敊鐨勯夋嫨銆
渚嬪侶ighcharts鍥炬爣搴撳氨鍙浠ュ疄鐜板悇綾繪洸綰垮浘銆佹姌綰垮浘銆佸尯鍩熷浘銆3D鍥俱佹熅鐘跺浘絳夌瓑銆傚叿浣撲嬌鐢ㄥ弬鑰冿細http://www.hcharts.cn/demo/index.php銆
Highcharts涓鍋氭姌綰垮浘鐨刣emo浠g爜鍙浠ヤ綔涓哄弬鑰冿細
<htmllang="en">
<head>
<scripttype="text/javascript"src="http://cdn.hcharts.cn/jquery/jquery-1.8.3.min.js">
</script>
<scripttype="text/javascript"src="http://cdn.hcharts.cn/highcharts/highcharts.js">
</script>
<scripttype="text/javascript"src="http://cdn.hcharts.cn/highcharts/exporting.js">
</script>
<script>
$(function(){
$('#container').highcharts({
chart:{
type:'line'
},
title:{
text:'MonthlyAverageTemperature'
},
ubtitle:{
text:'Source:WorldClimate.com'
},
xAxis:{
categories:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec']
},
yAxis:{
title:{
text:'Temperature(擄C)'
}
},
tooltip:{
enabled:false,
formatter:function(){
return'<b>'+this.series.name+'</b><br/>'+this.x+':'+this.y+'擄C';
}
},
plotOptions:{
line:{
dataLabels:{
enabled:true},
enableMouseTracking:false
}
},
series:[{
name:'Tokyo',
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]
},{
name:'London',
data:[3.9,4.2,5.7,8.5,11.9,15.2,17.0,16.6,14.2,10.3,6.6,4.8]
}]
});
});
</script>
</head>
<body>
<divid="container"style="min-width:700px;height:400px"></div>
</body>
</html>