123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <%
- String path = request.getContextPath();
- %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <!--框架必需start-->
- <script type="text/javascript" src="<%=path%>/libs/js/jquery.js"></script>
- <script type="text/javascript" src="<%=path%>/libs/js/language/cn.js"></script>
- <script type="text/javascript" src="<%=path%>/libs/js/framework.js"></script>
- <link href="<%=path%>/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
- <link rel="stylesheet" type="text/css" id="skin" prePath="<%=path%>/"/>
- <link rel="stylesheet" type="text/css" id="customSkin"/>
- <!--框架必需end-->
- <script src="<%=path%>/libs/thirdparty/highcharts/js/highcharts.js"></script>
- <script>
- $(function () {
- $('#container').highcharts({
- chart: {
- type: 'spline'
- },
- title: {
- text: '月平均温度',
- x: -20 //center
- },
- subtitle: {
- text: '来源:气象局官方数据',
- x: -20
- },
- xAxis: {
- categories: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']
- },
- yAxis: {
- title: {
- text: '温度 (°C)'
- },
- labels: {
- formatter: function() {
- return this.value +'°'
- }
- }
- },
- tooltip: {
- crosshairs: true,
- shared: true
- },
- plotOptions: {
- spline: {
- marker: {
- radius: 4,
- lineColor: '#666666',
- lineWidth: 1
- }
- }
- },
- series: [{
- name: '北京',
- marker: {
- symbol: 'square'
- },
- data: [7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, {
- y: 26.5,
- marker: {
- symbol: 'url(sun.png)'
- }
- }, 23.3, 18.3, 13.9, 9.6]
-
- }, {
- name: '广州',
- marker: {
- symbol: 'diamond'
- },
- data: [{
- y: 3.9,
- marker: {
- symbol: 'url(snow.png)'
- }
- }, 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>
- <div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
-
- </body>
- </html>
|