index.htm 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
  7. <script type="text/javascript">
  8. $(function () {
  9. $('#container').highcharts({
  10. chart: {
  11. },
  12. xAxis: {
  13. min: -0.5,
  14. max: 5.5
  15. },
  16. yAxis: {
  17. min: 0
  18. },
  19. title: {
  20. text: 'Scatter plot with regression line'
  21. },
  22. series: [{
  23. type: 'line',
  24. name: 'Regression Line',
  25. data: [[0, 1.11], [5, 4.51]],
  26. marker: {
  27. enabled: false
  28. },
  29. states: {
  30. hover: {
  31. lineWidth: 0
  32. }
  33. },
  34. enableMouseTracking: false
  35. }, {
  36. type: 'scatter',
  37. name: 'Observations',
  38. data: [1, 1.5, 2.8, 3.5, 3.9, 4.2],
  39. marker: {
  40. radius: 4
  41. }
  42. }]
  43. });
  44. });
  45. </script>
  46. </head>
  47. <body>
  48. <script src="../../js/highcharts.js"></script>
  49. <script src="../../js/modules/exporting.js"></script>
  50. <div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
  51. </body>
  52. </html>