• 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. "tooltip": {
    22. "placement": "node:top" //"node:top", "node:bottom", "node:left", "node:right", and "node:center"
    23. }
    24. },
    25. "scale-y": {
    26. "values": "0:50:10"
    27. },
    28. "series": [{
    29. "values": [30, 34, 40, 31, 37]
    30. }]
    31. },
    32. {
    33. "type": "pie",
    34. "plot": {
    35. "tooltip": {
    36. "placement": "node:out" //"node:center" and "node:out"
    37. }
    38. },
    39. "series": [{
    40. "values": [64]
    41. },
    42. {
    43. "values": [35]
    44. },
    45. {
    46. "values": [34]
    47. },
    48. {
    49. "values": [31]
    50. },
    51. {
    52. "values": [30]
    53. }
    54. ]
    55. }
    56. ]
    57. };
    58.  
    59. zingchart.render({
    60. id: 'myChart',
    61. data: myConfig,
    62. height: 400,
    63. width: 1000
    64. });
    65. </script>
    66. </body>
    67.  
    68. </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. "tooltip": {
    7. "placement": "node:top" //"node:top", "node:bottom", "node:left", "node:right", and "node:center"
    8. }
    9. },
    10. "scale-y": {
    11. "values": "0:50:10"
    12. },
    13. "series": [{
    14. "values": [30, 34, 40, 31, 37]
    15. }]
    16. },
    17. {
    18. "type": "pie",
    19. "plot": {
    20. "tooltip": {
    21. "placement": "node:out" //"node:center" and "node:out"
    22. }
    23. },
    24. "series": [{
    25. "values": [64]
    26. },
    27. {
    28. "values": [35]
    29. },
    30. {
    31. "values": [34]
    32. },
    33. {
    34. "values": [31]
    35. },
    36. {
    37. "values": [30]
    38. }
    39. ]
    40. }
    41. ]
    42. };
    43.  
    44. zingchart.render({
    45. id: 'myChart',
    46. data: myConfig,
    47. height: 400,
    48. width: 1000
    49. });