• 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: "horizontal", //vertical is also a possible value
    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: "pie",
    53. backgroundColor: "#F5F5F5",
    54. series: [{
    55. values: [42]
    56. },
    57. {
    58. values: [36]
    59. }
    60. ]
    61. }
    62. ]
    63. };
    64.  
    65. zingchart.render({
    66. id: 'myChart',
    67. data: myConfig,
    68. height: 400,
    69. width: '100%'
    70. });
    71. </script>
    72. </body>
    73.  
    74. </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: "horizontal", //vertical is also a possible value
    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: "pie",
    38. backgroundColor: "#F5F5F5",
    39. series: [{
    40. values: [42]
    41. },
    42. {
    43. values: [36]
    44. }
    45. ]
    46. }
    47. ]
    48. };
    49.  
    50. zingchart.render({
    51. id: 'myChart',
    52. data: myConfig,
    53. height: 400,
    54. width: '100%'
    55. });