index.htm 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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://cdn.hcharts.cn/jquery/jquery-1.8.3.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="http://cdn.hcharts.cn/highcharts/highcharts.js"></script>
  37. <script src="http://cdn.hcharts.cn/highcharts/modules/exporting.js"></script>
  38. <div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
  39. </body>
  40. </html>