index.htm 1.1 KB

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