• 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. layout: "2x3",
    18. graphset: [{
    19. type: "bar",
    20. backgroundColor: "#E0E0E0",
    21. series: [{
    22. values: [35, 42, 67, 89]
    23. },
    24. {
    25. values: [28, 40, 39, 36]
    26. }
    27. ]
    28. },
    29. {
    30. type: "line",
    31. backgroundColor: "#BDBDBD",
    32. series: [{
    33. values: [42, 35, 19, 50]
    34. },
    35. {
    36. values: [36, 21, 45, 47]
    37. }
    38. ]
    39. },
    40. {
    41. type: "area",
    42. backgroundColor: "#9E9E9E",
    43. series: [{
    44. values: [42, 35, 19, 50]
    45. },
    46. {
    47. values: [36, 21, 45, 47]
    48. }
    49. ]
    50. },
    51. {
    52. type: "hbar",
    53. backgroundColor: "#E0E0E0",
    54. series: [{
    55. values: [35, 42, 67, 89]
    56. },
    57. {
    58. values: [28, 40, 39, 36]
    59. }
    60. ]
    61. },
    62. {
    63. type: "gauge",
    64. backgroundColor: "#BDBDBD",
    65. series: [{
    66. values: [42]
    67. },
    68. {
    69. values: [36]
    70. }
    71. ]
    72. },
    73. {
    74. type: "pie",
    75. backgroundColor: "#9E9E9E",
    76. series: [{
    77. values: [42]
    78. },
    79. {
    80. values: [36]
    81. }
    82. ]
    83. }
    84. ]
    85. };
    86.  
    87. zingchart.render({
    88. id: 'myChart',
    89. data: myConfig,
    90. height: 400,
    91. width: '100%'
    92. });
    93. </script>
    94. </body>
    95.  
    96. </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. layout: "2x3",
    3. graphset: [{
    4. type: "bar",
    5. backgroundColor: "#E0E0E0",
    6. series: [{
    7. values: [35, 42, 67, 89]
    8. },
    9. {
    10. values: [28, 40, 39, 36]
    11. }
    12. ]
    13. },
    14. {
    15. type: "line",
    16. backgroundColor: "#BDBDBD",
    17. series: [{
    18. values: [42, 35, 19, 50]
    19. },
    20. {
    21. values: [36, 21, 45, 47]
    22. }
    23. ]
    24. },
    25. {
    26. type: "area",
    27. backgroundColor: "#9E9E9E",
    28. series: [{
    29. values: [42, 35, 19, 50]
    30. },
    31. {
    32. values: [36, 21, 45, 47]
    33. }
    34. ]
    35. },
    36. {
    37. type: "hbar",
    38. backgroundColor: "#E0E0E0",
    39. series: [{
    40. values: [35, 42, 67, 89]
    41. },
    42. {
    43. values: [28, 40, 39, 36]
    44. }
    45. ]
    46. },
    47. {
    48. type: "gauge",
    49. backgroundColor: "#BDBDBD",
    50. series: [{
    51. values: [42]
    52. },
    53. {
    54. values: [36]
    55. }
    56. ]
    57. },
    58. {
    59. type: "pie",
    60. backgroundColor: "#9E9E9E",
    61. series: [{
    62. values: [42]
    63. },
    64. {
    65. values: [36]
    66. }
    67. ]
    68. }
    69. ]
    70. };
    71.  
    72. zingchart.render({
    73. id: 'myChart',
    74. data: myConfig,
    75. height: 400,
    76. width: '100%'
    77. });