active_analysis.php 972 B

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