index.htm 1.3 KB

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