• 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": "1x2",
    18. "graphset": [{
    19. "type": "bar",
    20. "plot": {
    21. "background-color": "orange pink"
    22. },
    23. "series": [{
    24. "values": [31, 16, 35, 5, 59, 33]
    25. }]
    26. },
    27. {
    28. "type": "pie",
    29. "plot": {
    30. "background-color": "orange pink",
    31. "value-box": {
    32. "placement": "out",
    33. "font-color": "gray",
    34. "font-size": 12,
    35. "font-weight": "normal"
    36. }
    37. },
    38. "series": [{
    39. "values": [30],
    40. "offset-r": "15%",
    41. "background-color": "red orange"
    42. },
    43. {
    44. "values": [34]
    45. },
    46. {
    47. "values": [15]
    48. },
    49. {
    50. "values": [14]
    51. },
    52. {
    53. "values": [5]
    54. }
    55. ]
    56. }
    57. ]
    58. };
    59.  
    60. zingchart.render({
    61. id: 'myChart',
    62. data: myConfig,
    63. height: 400,
    64. width: "100%"
    65. });
    66. </script>
    67. </body>
    68.  
    69. </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": "1x2",
    3. "graphset": [{
    4. "type": "bar",
    5. "plot": {
    6. "background-color": "orange pink"
    7. },
    8. "series": [{
    9. "values": [31, 16, 35, 5, 59, 33]
    10. }]
    11. },
    12. {
    13. "type": "pie",
    14. "plot": {
    15. "background-color": "orange pink",
    16. "value-box": {
    17. "placement": "out",
    18. "font-color": "gray",
    19. "font-size": 12,
    20. "font-weight": "normal"
    21. }
    22. },
    23. "series": [{
    24. "values": [30],
    25. "offset-r": "15%",
    26. "background-color": "red orange"
    27. },
    28. {
    29. "values": [34]
    30. },
    31. {
    32. "values": [15]
    33. },
    34. {
    35. "values": [14]
    36. },
    37. {
    38. "values": [5]
    39. }
    40. ]
    41. }
    42. ]
    43. };
    44.  
    45. zingchart.render({
    46. id: 'myChart',
    47. data: myConfig,
    48. height: 400,
    49. width: "100%"
    50. });