• Edit
  • Download
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7.  
    8. <script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
    9. <style></style>
    10. </head>
    11.  
    12. <body>
    13. <div id='myChart'></div>
    14. <script>
    15. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    16. var myConfig = {
    17. "type": "line",
    18. "utc": true,
    19. "timezone": -5, //EST time
    20. "scale-x": {
    21. "min-value": "1457101800000",
    22. "max-value": "1457125200000",
    23. "step": "30minute",
    24. "transform": {
    25. "type": "date",
    26. "all": "%g:%i"
    27. },
    28. "items-overlap": true,
    29. "max-items": 14,
    30. "item": {
    31. "font-size": 10
    32. }
    33. },
    34. "scale-y": {
    35. "values": "32:34:0.25",
    36. "format": "$%v",
    37. "decimals": 2,
    38. "item": {
    39. "font-size": 10
    40. }
    41. },
    42. "series": [{
    43. "values": [
    44. [1457101800000, 32.34], //03/04/2016 at 9:30 a.m. EST (which is 14:30 in GMT)
    45. [1457103600000, 32.30], //10:00 a.m.
    46. [1457105400000, 32.95], //10:30 a.m.
    47. [1457107200000, 32.99], //11:00 a.m.
    48. [1457109000000, 32.33], //11:30 a.m.
    49. [1457110800000, 33.34], //12:00 p.m.
    50. [1457112600000, 33.01], //12:30 p.m.
    51. [1457114400000, 34], //1:00 p.m.
    52. [1457116200000, 33.64], //1:30 p.m.
    53. [1457118000000, 32.59], //2:00 p.m.
    54. [1457119800000, 32.60], //2:30 p.m.
    55. [1457121600000, 32.99], //3:00 p.m.
    56. [1457123400000, 32.14], //3:30 p.m.
    57. [1457125200000, 32.34], //at 4:00 p.m. EST (which is 21:00 GMT)
    58. ]
    59. }]
    60. };
    61.  
    62. zingchart.render({
    63. id: 'myChart',
    64. data: myConfig,
    65. height: 400,
    66. width: "100%"
    67. });
    68. </script>
    69. </body>
    70.  
    71. </html>
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7.  
    8. <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    9. </head>
    10.  
    11. <body>
    12. <div id='myChart'></div>
    13. </body>
    14.  
    15. </html>
    1.  
    1. var myConfig = {
    2. "type": "line",
    3. "utc": true,
    4. "timezone": -5, //EST time
    5. "scale-x": {
    6. "min-value": "1457101800000",
    7. "max-value": "1457125200000",
    8. "step": "30minute",
    9. "transform": {
    10. "type": "date",
    11. "all": "%g:%i"
    12. },
    13. "items-overlap": true,
    14. "max-items": 14,
    15. "item": {
    16. "font-size": 10
    17. }
    18. },
    19. "scale-y": {
    20. "values": "32:34:0.25",
    21. "format": "$%v",
    22. "decimals": 2,
    23. "item": {
    24. "font-size": 10
    25. }
    26. },
    27. "series": [{
    28. "values": [
    29. [1457101800000, 32.34], //03/04/2016 at 9:30 a.m. EST (which is 14:30 in GMT)
    30. [1457103600000, 32.30], //10:00 a.m.
    31. [1457105400000, 32.95], //10:30 a.m.
    32. [1457107200000, 32.99], //11:00 a.m.
    33. [1457109000000, 32.33], //11:30 a.m.
    34. [1457110800000, 33.34], //12:00 p.m.
    35. [1457112600000, 33.01], //12:30 p.m.
    36. [1457114400000, 34], //1:00 p.m.
    37. [1457116200000, 33.64], //1:30 p.m.
    38. [1457118000000, 32.59], //2:00 p.m.
    39. [1457119800000, 32.60], //2:30 p.m.
    40. [1457121600000, 32.99], //3:00 p.m.
    41. [1457123400000, 32.14], //3:30 p.m.
    42. [1457125200000, 32.34], //at 4:00 p.m. EST (which is 21:00 GMT)
    43. ]
    44. }]
    45. };
    46.  
    47. zingchart.render({
    48. id: 'myChart',
    49. data: myConfig,
    50. height: 400,
    51. width: "100%"
    52. });