• 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": "ring",
    18. "title": {
    19. "text": "Legend Highlight"
    20. },
    21. "subtitle": {
    22. "text": "Hover over the legend items to highlight the corresponding nodes.",
    23. "font-weight": "normal"
    24. },
    25. "legend": {
    26. "highlight-plot": true,
    27. "x": "75%",
    28. "y": "25%"
    29. },
    30. "plotarea": {
    31. "margin-right": "30%",
    32. "margin-top": "15%"
    33. },
    34. "plot": {
    35. "highlight-state": {
    36. "background-color": "red #ffe6e6",
    37. "border-width": 1,
    38. "border-color": "red",
    39. "line-style": "dotted"
    40. },
    41. "slice": "50%",
    42. "value-box": {
    43. "placement": "out",
    44. "font-color": "black",
    45. "font-size": 11,
    46. "font-weight": "normal"
    47. }
    48. },
    49. "series": [{
    50. "values": [234]
    51. },
    52. {
    53. "values": [121]
    54. },
    55. {
    56. "values": [77]
    57. },
    58. {
    59. "values": [65]
    60. },
    61. {
    62. "values": [59]
    63. },
    64. {
    65. "values": [35]
    66. },
    67. {
    68. "values": [34]
    69. },
    70. {
    71. "values": [31]
    72. },
    73. {
    74. "values": [16]
    75. },
    76. {
    77. "values": [14]
    78. }
    79. ]
    80. };
    81.  
    82. zingchart.render({
    83. id: 'myChart',
    84. data: myConfig,
    85. height: 400,
    86. width: "100%"
    87. });
    88. </script>
    89. </body>
    90.  
    91. </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": "ring",
    3. "title": {
    4. "text": "Legend Highlight"
    5. },
    6. "subtitle": {
    7. "text": "Hover over the legend items to highlight the corresponding nodes.",
    8. "font-weight": "normal"
    9. },
    10. "legend": {
    11. "highlight-plot": true,
    12. "x": "75%",
    13. "y": "25%"
    14. },
    15. "plotarea": {
    16. "margin-right": "30%",
    17. "margin-top": "15%"
    18. },
    19. "plot": {
    20. "highlight-state": {
    21. "background-color": "red #ffe6e6",
    22. "border-width": 1,
    23. "border-color": "red",
    24. "line-style": "dotted"
    25. },
    26. "slice": "50%",
    27. "value-box": {
    28. "placement": "out",
    29. "font-color": "black",
    30. "font-size": 11,
    31. "font-weight": "normal"
    32. }
    33. },
    34. "series": [{
    35. "values": [234]
    36. },
    37. {
    38. "values": [121]
    39. },
    40. {
    41. "values": [77]
    42. },
    43. {
    44. "values": [65]
    45. },
    46. {
    47. "values": [59]
    48. },
    49. {
    50. "values": [35]
    51. },
    52. {
    53. "values": [34]
    54. },
    55. {
    56. "values": [31]
    57. },
    58. {
    59. "values": [16]
    60. },
    61. {
    62. "values": [14]
    63. }
    64. ]
    65. };
    66.  
    67. zingchart.render({
    68. id: 'myChart',
    69. data: myConfig,
    70. height: 400,
    71. width: "100%"
    72. });