• 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>
    10. html,
    11. body,
    12. #myChart {
    13. height: 100%;
    14. width: 100%;
    15. }
    16. </style>
    17. </head>
    18.  
    19. <body>
    20. <div id='myChart'></div>
    21. <script>
    22. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    23. var myConfig = {
    24. "type": "line",
    25. "utc": true,
    26. "plotarea": {
    27. "adjust-layout": true
    28. },
    29. "scale-x": {
    30. "label": {
    31. "text": "Above is an example of a time-series scale"
    32. },
    33. "min-value": 1420070400000,
    34. "step": "day",
    35. "transform": {
    36. "type": "date",
    37. "all": "%m.%d.%y"
    38. }
    39. },
    40. "series": [{
    41. "values": [
    42. 20,
    43. 40,
    44. 25,
    45. 50,
    46. 15,
    47. 45,
    48. 33,
    49. 34
    50. ]
    51. },
    52. {
    53. "values": [
    54. 5,
    55. 30,
    56. 21,
    57. 18,
    58. 59,
    59. 50,
    60. 28,
    61. 33
    62. ]
    63. }
    64. ]
    65. };
    66.  
    67. zingchart.render({
    68. id: 'myChart',
    69. data: myConfig,
    70. height: '100%',
    71. width: '100%'
    72. });
    73. </script>
    74. </body>
    75.  
    76. </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. html,
    2. body,
    3. #myChart {
    4. height: 100%;
    5. width: 100%;
    6. }
    1. var myConfig = {
    2. "type": "line",
    3. "utc": true,
    4. "plotarea": {
    5. "adjust-layout": true
    6. },
    7. "scale-x": {
    8. "label": {
    9. "text": "Above is an example of a time-series scale"
    10. },
    11. "min-value": 1420070400000,
    12. "step": "day",
    13. "transform": {
    14. "type": "date",
    15. "all": "%m.%d.%y"
    16. }
    17. },
    18. "series": [{
    19. "values": [
    20. 20,
    21. 40,
    22. 25,
    23. 50,
    24. 15,
    25. 45,
    26. 33,
    27. 34
    28. ]
    29. },
    30. {
    31. "values": [
    32. 5,
    33. 30,
    34. 21,
    35. 18,
    36. 59,
    37. 50,
    38. 28,
    39. 33
    40. ]
    41. }
    42. ]
    43. };
    44.  
    45. zingchart.render({
    46. id: 'myChart',
    47. data: myConfig,
    48. height: '100%',
    49. width: '100%'
    50. });