1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <!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" />
- <title>温度按时间统计-日线</title>
- <script type="text/javascript">
- $(function() {
- Highcharts.setOptions({
- lang: {
- resetZoom: "重置",
- }
- });
-
- $("#chartDiv").highcharts({
- chart: {
- zoomType: "x",
- borderWidth: 0
- },
- colors: ["#3a8ecf", "#8bba00", "#f6bd0f"],
- exporting: {
- enabled: false
- },
- title: {
- text: "$!jsms"=="1" ? "体温日线" : "体温全程",
- },
- xAxis: {
- categories: eval("$!xAxis")
- },
- yAxis: {
- title: {
- text: "℃"
- }
- },
- tooltip: {
- valueDecimals: 2,
- valueSuffix: "℃",
- followTouchMove: true,
- followPointer:true,
- shared: true,
- useHTML: true,
- crosshairs: [{
- width: 2,
- color: "#FF5B00",
- dashStyle: "shortdot"
- }, {
- width: 2,
- color: "#FF5B00",
- dashStyle: "shortdot"
- }]
- },
- legend: {
- enabled: true
- },
- credits: {
- enabled: false
- },
- plotOptions: {
- line: {
- turboThreshold: 0,
- marker: {
- radius: 2
- },
- lineWidth: 2,
- states: {
- hover: {
- enabled: false,
- lineWidth: 3
- }
- },
- }
- },
- series: [{
- name: "最高",
- data: eval("$!yAxisMax")
- }, {
- name: "平均",
- data: eval("$!yAxisAvg")
- }, {
- name: "最低",
- data: eval("$!yAxisMin")
- }]
- });
- });
- </script>
- </head>
- <body>
- <div>
- <div id="chartDiv" style="height: 100%; width: 100%;"></div>
- </div>
- </body>
- </html>
|