• 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. "plotarea": {
    26. "adjust-layout": true
    27. },
    28. "scale-x": {
    29. "label": {
    30. "text": "Above is an example of a category scale",
    31.  
    32. },
    33. "labels": [
    34. "Jan",
    35. "Feb",
    36. "March",
    37. "April",
    38. "May",
    39. "June",
    40. "July",
    41. "Aug"
    42. ]
    43. },
    44. "series": [{
    45. "values": [
    46. 20,
    47. 40,
    48. 25,
    49. 50,
    50. 15,
    51. 45,
    52. 33,
    53. 34
    54. ]
    55. },
    56. {
    57. "values": [
    58. 5,
    59. 30,
    60. 21,
    61. 18,
    62. 59,
    63. 50,
    64. 28,
    65. 33
    66. ]
    67. }
    68. ]
    69. };
    70.  
    71. zingchart.render({
    72. id: 'myChart',
    73. data: myConfig,
    74. height: '100%',
    75. width: '100%'
    76. });
    77. </script>
    78. </body>
    79.  
    80. </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. "plotarea": {
    4. "adjust-layout": true
    5. },
    6. "scale-x": {
    7. "label": {
    8. "text": "Above is an example of a category scale",
    9.  
    10. },
    11. "labels": [
    12. "Jan",
    13. "Feb",
    14. "March",
    15. "April",
    16. "May",
    17. "June",
    18. "July",
    19. "Aug"
    20. ]
    21. },
    22. "series": [{
    23. "values": [
    24. 20,
    25. 40,
    26. 25,
    27. 50,
    28. 15,
    29. 45,
    30. 33,
    31. 34
    32. ]
    33. },
    34. {
    35. "values": [
    36. 5,
    37. 30,
    38. 21,
    39. 18,
    40. 59,
    41. 50,
    42. 28,
    43. 33
    44. ]
    45. }
    46. ]
    47. };
    48.  
    49. zingchart.render({
    50. id: 'myChart',
    51. data: myConfig,
    52. height: '100%',
    53. width: '100%'
    54. });