• 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. height: 100%;
    13. width: 100%;
    14. }
    15.  
    16. #myChart {
    17. height: 100%;
    18. width: 100%;
    19. min-height: 250px;
    20. }
    21. </style>
    22. </head>
    23.  
    24. <body>
    25. <div id='myChart'></div>
    26. <script>
    27. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    28. let chartConfig = {
    29. type: 'radar',
    30. plot: {
    31. aspect: 'area',
    32. animation: {
    33. effect: 3,
    34. sequence: 1,
    35. speed: 700
    36. }
    37. },
    38. scaleV: {
    39. visible: false
    40. },
    41. scaleK: {
    42. values: '0:5:1',
    43. labels: ['Dogs', 'Cats', 'Fish', 'Birds', 'Reptiles', 'Horses'],
    44. item: {
    45. fontColor: '#607D8B',
    46. backgroundColor: "white",
    47. borderColor: "#aeaeae",
    48. borderWidth: 1,
    49. padding: '5 10',
    50. borderRadius: 10,
    51. },
    52. refLine: {
    53. lineColor: '#c10000'
    54. },
    55. tick: {
    56. lineColor: '#59869c',
    57. lineWidth: 2,
    58. lineStyle: 'dotted',
    59. size: 20
    60. },
    61. guide: {
    62. lineColor: "#607D8B",
    63. lineStyle: 'solid',
    64. alpha: 0.3,
    65. backgroundColor: "#c5c5c5 #718eb4"
    66. },
    67. tooltip: {
    68. text: '%data-test'
    69. },
    70. mediaRules: [{
    71. maxWidth: 400,
    72. backgroundColor: 'red'
    73. }]
    74. },
    75. series: [{
    76. values: [59, 39, 38, 19, 21, 35],
    77. },
    78. {
    79. values: [20, 20, 54, 41, 41, 35],
    80. lineColor: '#53a534',
    81. backgroundColor: '#689F38'
    82. }
    83. ]
    84. };
    85.  
    86. zingchart.render({
    87. id: 'myChart',
    88. data: chartConfig,
    89. height: '100%',
    90. width: '100%'
    91. });
    92. </script>
    93. </body>
    94.  
    95. </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. height: 100%;
    4. width: 100%;
    5. }
    6.  
    7. #myChart {
    8. height: 100%;
    9. width: 100%;
    10. min-height: 250px;
    11. }
    1. let chartConfig = {
    2. type: 'radar',
    3. plot: {
    4. aspect: 'area',
    5. animation: {
    6. effect: 3,
    7. sequence: 1,
    8. speed: 700
    9. }
    10. },
    11. scaleV: {
    12. visible: false
    13. },
    14. scaleK: {
    15. values: '0:5:1',
    16. labels: ['Dogs', 'Cats', 'Fish', 'Birds', 'Reptiles', 'Horses'],
    17. item: {
    18. fontColor: '#607D8B',
    19. backgroundColor: "white",
    20. borderColor: "#aeaeae",
    21. borderWidth: 1,
    22. padding: '5 10',
    23. borderRadius: 10,
    24. },
    25. refLine: {
    26. lineColor: '#c10000'
    27. },
    28. tick: {
    29. lineColor: '#59869c',
    30. lineWidth: 2,
    31. lineStyle: 'dotted',
    32. size: 20
    33. },
    34. guide: {
    35. lineColor: "#607D8B",
    36. lineStyle: 'solid',
    37. alpha: 0.3,
    38. backgroundColor: "#c5c5c5 #718eb4"
    39. },
    40. tooltip: {
    41. text: '%data-test'
    42. },
    43. mediaRules: [{
    44. maxWidth: 400,
    45. backgroundColor: 'red'
    46. }]
    47. },
    48. series: [{
    49. values: [59, 39, 38, 19, 21, 35],
    50. },
    51. {
    52. values: [20, 20, 54, 41, 41, 35],
    53. lineColor: '#53a534',
    54. backgroundColor: '#689F38'
    55. }
    56. ]
    57. };
    58.  
    59. zingchart.render({
    60. id: 'myChart',
    61. data: chartConfig,
    62. height: '100%',
    63. width: '100%'
    64. });