Ⅰ 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>