• 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. "decimals-separator": ",",
    39. "item": {
    40. "font-size": 10
    41. }
    42. },
    43. "series": [{
    44. "values": [
    45. [1457101800000, 32.34], //03/04/2016 at 9:30 a.m. EST (which is 14:30 in GMT)
    46. [1457103600000, 32.30], //10:00 a.m.
    47. [1457105400000, 32.95], //10:30 a.m.
    48. [1457107200000, 32.99], //11:00 a.m.
    49. [1457109000000, 32.33], //11:30 a.m.
    50. [1457110800000, 33.34], //12:00 p.m.
    51. [1457112600000, 33.01], //12:30 p.m.
    52. [1457114400000, 34], //1:00 p.m.
    53. [1457116200000, 33.64], //1:30 p.m.
    54. [1457118000000, 32.59], //2:00 p.m.
    55. [1457119800000, 32.60], //2:30 p.m.
    56. [1457121600000, 32.99], //3:00 p.m.
    57. [1457123400000, 32.14], //3:30 p.m.
    58. [1457125200000, 32.34], //at 4:00 p.m. EST (which is 21:00 GMT)
    59. ]
    60. }]
    61. };
    62.  
    63. zingchart.render({
    64. id: 'myChart',
    65. data: myConfig,
    66. height: 400,
    67. width: "100%"
    68. });
    69. </script>
    70. </body>
    71.  
    72. </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. "decimals-separator": ",",
    24. "item": {
    25. "font-size": 10
    26. }
    27. },
    28. "series": [{
    29. "values": [
    30. [1457101800000, 32.34], //03/04/2016 at 9:30 a.m. EST (which is 14:30 in GMT)
    31. [1457103600000, 32.30], //10:00 a.m.
    32. [1457105400000, 32.95], //10:30 a.m.
    33. [1457107200000, 32.99], //11:00 a.m.
    34. [1457109000000, 32.33], //11:30 a.m.
    35. [1457110800000, 33.34], //12:00 p.m.
    36. [1457112600000, 33.01], //12:30 p.m.
    37. [1457114400000, 34], //1:00 p.m.
    38. [1457116200000, 33.64], //1:30 p.m.
    39. [1457118000000, 32.59], //2:00 p.m.
    40. [1457119800000, 32.60], //2:30 p.m.
    41. [1457121600000, 32.99], //3:00 p.m.
    42. [1457123400000, 32.14], //3:30 p.m.
    43. [1457125200000, 32.34], //at 4:00 p.m. EST (which is 21:00 GMT)
    44. ]
    45. }]
    46. };
    47.  
    48. zingchart.render({
    49. id: 'myChart',
    50. data: myConfig,
    51. height: 400,
    52. width: "100%"
    53. });