• 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": "pie",
    18. "title": {
    19. "text": "Legend Toggling"
    20. },
    21. "subtitle": {
    22. "text": "Click the legend items or markers.",
    23. "font-weight": "normal"
    24. },
    25. "legend": {
    26. "toggle-action": "remove",
    27. "x": "75%",
    28. "y": "25%"
    29. },
    30. "plotarea": {
    31. "margin-right": "30%",
    32. "margin-top": "15%"
    33. },
    34. "plot": {
    35. "value-box": {
    36. "font-size": 11,
    37. "font-weight": "normal",
    38. "offset-r": "50%"
    39. }
    40. },
    41. "series": [{
    42. "values": [234]
    43. },
    44. {
    45. "values": [121]
    46. },
    47. {
    48. "values": [77]
    49. },
    50. {
    51. "values": [65]
    52. },
    53. {
    54. "values": [59]
    55. },
    56. {
    57. "values": [35]
    58. },
    59. {
    60. "values": [34]
    61. },
    62. {
    63. "values": [31]
    64. },
    65. {
    66. "values": [16]
    67. },
    68. {
    69. "values": [14]
    70. }
    71. ]
    72. };
    73.  
    74. zingchart.render({
    75. id: 'myChart',
    76. data: myConfig,
    77. height: 400,
    78. width: "100%"
    79. });
    80. </script>
    81. </body>
    82.  
    83. </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": "pie",
    3. "title": {
    4. "text": "Legend Toggling"
    5. },
    6. "subtitle": {
    7. "text": "Click the legend items or markers.",
    8. "font-weight": "normal"
    9. },
    10. "legend": {
    11. "toggle-action": "remove",
    12. "x": "75%",
    13. "y": "25%"
    14. },
    15. "plotarea": {
    16. "margin-right": "30%",
    17. "margin-top": "15%"
    18. },
    19. "plot": {
    20. "value-box": {
    21. "font-size": 11,
    22. "font-weight": "normal",
    23. "offset-r": "50%"
    24. }
    25. },
    26. "series": [{
    27. "values": [234]
    28. },
    29. {
    30. "values": [121]
    31. },
    32. {
    33. "values": [77]
    34. },
    35. {
    36. "values": [65]
    37. },
    38. {
    39. "values": [59]
    40. },
    41. {
    42. "values": [35]
    43. },
    44. {
    45. "values": [34]
    46. },
    47. {
    48. "values": [31]
    49. },
    50. {
    51. "values": [16]
    52. },
    53. {
    54. "values": [14]
    55. }
    56. ]
    57. };
    58.  
    59. zingchart.render({
    60. id: 'myChart',
    61. data: myConfig,
    62. height: 400,
    63. width: "100%"
    64. });