• 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. let chartConfig = {
    24. type: 'chord',
    25. series: [{
    26. values: [6637, 5700, 4789, 2771],
    27. text: 'A',
    28. style: {
    29. chord: {
    30. borderColor: '#900',
    31. borderWidth: 4,
    32. tooltip: {
    33. text: 'Chord Tooltip Text',
    34. borderColor: '#f60',
    35. callout: true,
    36. calloutHeight: 15,
    37. calloutPosition: 'bottom',
    38. calloutWidth: 0,
    39. calloutTip: {
    40. type: 'circle',
    41. backgroundColor: '#fff',
    42. borderWidth: 2,
    43. borderColor: '#f60',
    44. offsetY: 5,
    45. size: 5,
    46. }
    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: chartConfig,
    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. let chartConfig = {
    2. type: 'chord',
    3. series: [{
    4. values: [6637, 5700, 4789, 2771],
    5. text: 'A',
    6. style: {
    7. chord: {
    8. borderColor: '#900',
    9. borderWidth: 4,
    10. tooltip: {
    11. text: 'Chord Tooltip Text',
    12. borderColor: '#f60',
    13. callout: true,
    14. calloutHeight: 15,
    15. calloutPosition: 'bottom',
    16. calloutWidth: 0,
    17. calloutTip: {
    18. type: 'circle',
    19. backgroundColor: '#fff',
    20. borderWidth: 2,
    21. borderColor: '#f60',
    22. offsetY: 5,
    23. size: 5,
    24. }
    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: chartConfig,
    47. height: '100%',
    48. width: '100%'
    49. });