2
0

active_analysis.php 759 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. ?>
  3. <html>
  4. <body>
  5. <script src="https://code.highcharts.com/stock/highstock.js"></script>
  6. <script src="https://code.highcharts.com/stock/modules/data.js"></script>
  7. <script src="https://code.highcharts.com/stock/modules/exporting.js"></script>
  8. <div id="container" style="height: 400px; min-width: 310px"></div>
  9. <script>
  10. Highcharts.getJSON('active_get.php', function (data) {
  11. // create the chart
  12. Highcharts.stockChart('container', {
  13. rangeSelector: {
  14. selected: 2
  15. },
  16. title: {
  17. text: 'Pali Step'
  18. },
  19. series: [{
  20. type: 'ohlc',
  21. name: 'AAPL Stock Price',
  22. data: data,
  23. dataGrouping: {
  24. units: [[
  25. 'week', // unit name
  26. [1] // allowed multiples
  27. ], [
  28. 'month',
  29. [1, 2, 3, 4, 6]
  30. ]]
  31. }
  32. }]
  33. });
  34. });
  35. </script>
  36. </body>
  37. </html>