• 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>
    10. html,
    11. body,
    12. #myChart {
    13. height: 100%;
    14. width: 100%;
    15. }
    16. </style>
    17. </head>
    18.  
    19. <body>
    20. <div id='myChart'></div>
    21. <script>
    22. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    23. var myConfig = {
    24. "type": "chord",
    25. "options": {
    26. "style": {
    27.  
    28. }
    29. },
    30. "series": [{
    31. "values": [6637, 5700, 4789, 2771],
    32. "text": "A",
    33. "style": {
    34. "tooltip": {
    35. "background-color": "#090",
    36. "color": "#fff"
    37. },
    38. "band": {
    39. "tooltip": {
    40. "text": "Specific text for band of item %text"
    41. }
    42. },
    43. "chord": {
    44. "tooltip": {
    45. "text-chord": "%text-source/%value-source links to %text-destination/%value-destination",
    46. "text": "%text has value %value"
    47. }
    48. }
    49. }
    50. },
    51. {
    52. "values": [7737, 2691, 2202, 7006],
    53. "text": "B"
    54. },
    55. {
    56. "values": [8574, 9898, 4084, 1765],
    57. "text": "C"
    58. },
    59. {
    60. "values": [5309, 1602, 8395, 2908],
    61. "text": "D"
    62. }
    63. ]
    64. };
    65.  
    66. zingchart.render({
    67. id: 'myChart',
    68. data: myConfig,
    69. height: "100%",
    70. width: "100%"
    71. });
    72. </script>
    73. </body>
    74.  
    75. </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. html,
    2. body,
    3. #myChart {
    4. height: 100%;
    5. width: 100%;
    6. }
    1. var myConfig = {
    2. "type": "chord",
    3. "options": {
    4. "style": {
    5.  
    6. }
    7. },
    8. "series": [{
    9. "values": [6637, 5700, 4789, 2771],
    10. "text": "A",
    11. "style": {
    12. "tooltip": {
    13. "background-color": "#090",
    14. "color": "#fff"
    15. },
    16. "band": {
    17. "tooltip": {
    18. "text": "Specific text for band of item %text"
    19. }
    20. },
    21. "chord": {
    22. "tooltip": {
    23. "text-chord": "%text-source/%value-source links to %text-destination/%value-destination",
    24. "text": "%text has value %value"
    25. }
    26. }
    27. }
    28. },
    29. {
    30. "values": [7737, 2691, 2202, 7006],
    31. "text": "B"
    32. },
    33. {
    34. "values": [8574, 9898, 4084, 1765],
    35. "text": "C"
    36. },
    37. {
    38. "values": [5309, 1602, 8395, 2908],
    39. "text": "D"
    40. }
    41. ]
    42. };
    43.  
    44. zingchart.render({
    45. id: 'myChart',
    46. data: myConfig,
    47. height: "100%",
    48. width: "100%"
    49. });