• 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. "type": "nestedpie",
    18. "title": {
    19. "text": "Nested Pie Chart Styling"
    20. },
    21. "plot": {
    22. "alpha": 0.8,
    23. "shadow": false,
    24. "border-width": 1,
    25. "border-color": "white",
    26. "slice-start": "30%",
    27. },
    28. "series": [{
    29. "values": [59, 55, 30],
    30. "background-color": "orange red",
    31. },
    32. {
    33. "values": [60, 50, 35],
    34. "background-color": "yellow orange"
    35. },
    36. {
    37. "values": [50, 40, 30],
    38. "background-color": "green blue"
    39. },
    40. {
    41. "values": [61, 59, 35],
    42. "background-color": "blue purple"
    43. },
    44. {
    45. "values": [65, 55, 45],
    46. "background-color": "purple red"
    47. }
    48. ]
    49. };
    50.  
    51. zingchart.render({
    52. id: 'myChart',
    53. data: myConfig,
    54. height: 400,
    55. width: "100%"
    56. });
    57. </script>
    58. </body>
    59.  
    60. </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. "type": "nestedpie",
    3. "title": {
    4. "text": "Nested Pie Chart Styling"
    5. },
    6. "plot": {
    7. "alpha": 0.8,
    8. "shadow": false,
    9. "border-width": 1,
    10. "border-color": "white",
    11. "slice-start": "30%",
    12. },
    13. "series": [{
    14. "values": [59, 55, 30],
    15. "background-color": "orange red",
    16. },
    17. {
    18. "values": [60, 50, 35],
    19. "background-color": "yellow orange"
    20. },
    21. {
    22. "values": [50, 40, 30],
    23. "background-color": "green blue"
    24. },
    25. {
    26. "values": [61, 59, 35],
    27. "background-color": "blue purple"
    28. },
    29. {
    30. "values": [65, 55, 45],
    31. "background-color": "purple red"
    32. }
    33. ]
    34. };
    35.  
    36. zingchart.render({
    37. id: 'myChart',
    38. data: myConfig,
    39. height: 400,
    40. width: "100%"
    41. });