市长热线演示版

index.htm 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  5. <title>Highcharts Example</title>
  6. <script type="text/javascript" src="http://cdn.hcharts.cn/jquery/jquery-1.8.3.min.js"></script>
  7. <script type="text/javascript">
  8. $(function () {
  9. $('#container').highcharts({
  10. xAxis: {
  11. min: -0.5,
  12. max: 5.5
  13. },
  14. yAxis: {
  15. min: 0
  16. },
  17. title: {
  18. text: 'Scatter plot with regression line'
  19. },
  20. series: [{
  21. type: 'line',
  22. name: 'Regression Line',
  23. data: [[0, 1.11], [5, 4.51]],
  24. marker: {
  25. enabled: false
  26. },
  27. states: {
  28. hover: {
  29. lineWidth: 0
  30. }
  31. },
  32. enableMouseTracking: false
  33. }, {
  34. type: 'scatter',
  35. name: 'Observations',
  36. data: [1, 1.5, 2.8, 3.5, 3.9, 4.2],
  37. marker: {
  38. radius: 4
  39. }
  40. }]
  41. });
  42. });
  43. </script>
  44. </head>
  45. <body>
  46. <script src="../../js/highcharts.js"></script>
  47. <script src="../../js/modules/exporting.js"></script>
  48. <div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
  49. </body>
  50. </html>