You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.1 KiB

9 years ago
  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. <style type="text/css">
  8. ${demo.css}
  9. </style>
  10. <script type="text/javascript">
  11. $(function () {
  12. $('#container').highcharts({
  13. title: {
  14. text: 'Logarithmic axis demo'
  15. },
  16. xAxis: {
  17. tickInterval: 1
  18. },
  19. yAxis: {
  20. type: 'logarithmic',
  21. minorTickInterval: 0.1
  22. },
  23. tooltip: {
  24. headerFormat: '<b>{series.name}</b><br />',
  25. pointFormat: 'x = {point.x}, y = {point.y}'
  26. },
  27. series: [{
  28. data: [1, 2, 4, 8, 16, 32, 64, 128, 256, 512],
  29. pointStart: 1
  30. }]
  31. });
  32. });
  33. </script>
  34. </head>
  35. <body>
  36. <script src="../../js/highcharts.js"></script>
  37. <script src="../../js/modules/exporting.js"></script>
  38. <div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
  39. </body>
  40. </html>