index.htm 1.0 KB

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