• 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. "scale-x": {
    19. "min-value": 1388534400000,
    20. "step": "30minute",
    21. "transform": {
    22. "type": "date",
    23. "all": "%m/%d/%Y<br>%h:%i:%s:%q %A"
    24. },
    25. "item": {
    26. "font-size": 9
    27. }
    28. },
    29. "utc": true,
    30. "timezone": 0,
    31. "series": [{
    32. "values": [20, 40, 25, 50, 15, 45, 33, 34]
    33. },
    34. {
    35. "values": [5, 30, 21, 18, 59, 50, 28, 33]
    36. }
    37. ]
    38. };
    39.  
    40. zingchart.render({
    41. id: 'myChart',
    42. data: myConfig,
    43. height: 400,
    44. width: "100%"
    45. });
    46. </script>
    47. </body>
    48.  
    49. </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. "scale-x": {
    4. "min-value": 1388534400000,
    5. "step": "30minute",
    6. "transform": {
    7. "type": "date",
    8. "all": "%m/%d/%Y<br>%h:%i:%s:%q %A"
    9. },
    10. "item": {
    11. "font-size": 9
    12. }
    13. },
    14. "utc": true,
    15. "timezone": 0,
    16. "series": [{
    17. "values": [20, 40, 25, 50, 15, 45, 33, 34]
    18. },
    19. {
    20. "values": [5, 30, 21, 18, 59, 50, 28, 33]
    21. }
    22. ]
    23. };
    24.  
    25. zingchart.render({
    26. id: 'myChart',
    27. data: myConfig,
    28. height: 400,
    29. width: "100%"
    30. });