• 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: 'radar',
    25. plot: {
    26. aspect: 'area',
    27. lineWidth: 1
    28. },
    29. scaleV: {
    30. values: '0:100:10',
    31. format: '%v%',
    32. item: {
    33. fontColor: '#607D8B',
    34. backgroundColor: 'white',
    35. borderColor: '#aeaeae',
    36. borderWidth: 1,
    37. padding: 3,
    38. borderRadius: 10,
    39. offsetX: 5
    40. },
    41. refLine: {
    42. lineColor: '#607D8B'
    43. },
    44. tick: {
    45. lineColor: '#607D8B',
    46. length: 5,
    47. size: 5
    48. },
    49. guide: {
    50. lineColor: '#CFD8DC',
    51. lineStyle: 'solid'
    52. },
    53. mediaRules: [{
    54. maxWidth: 400,
    55. item: {
    56. fontColor: 'red',
    57. },
    58. }]
    59. },
    60. scaleK: {
    61. visible: false
    62. },
    63. series: [{
    64. values: [59, 30, 65, 34, 40],
    65. backgroundColor: '#689F38',
    66. lineColor: '#33691E'
    67. }, {
    68. values: [76, 60, 11, 21, 99],
    69. backgroundColor: '#0288D1',
    70. lineColor: '#01579B'
    71. }]
    72. };
    73.  
    74. zingchart.render({
    75. id: 'myChart',
    76. data: chartConfig,
    77. height: '100%',
    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. html,
    2. body,
    3. #myChart {
    4. height: 100%;
    5. width: 100%;
    6. }
    1. let chartConfig = {
    2. type: 'radar',
    3. plot: {
    4. aspect: 'area',
    5. lineWidth: 1
    6. },
    7. scaleV: {
    8. values: '0:100:10',
    9. format: '%v%',
    10. item: {
    11. fontColor: '#607D8B',
    12. backgroundColor: 'white',
    13. borderColor: '#aeaeae',
    14. borderWidth: 1,
    15. padding: 3,
    16. borderRadius: 10,
    17. offsetX: 5
    18. },
    19. refLine: {
    20. lineColor: '#607D8B'
    21. },
    22. tick: {
    23. lineColor: '#607D8B',
    24. length: 5,
    25. size: 5
    26. },
    27. guide: {
    28. lineColor: '#CFD8DC',
    29. lineStyle: 'solid'
    30. },
    31. mediaRules: [{
    32. maxWidth: 400,
    33. item: {
    34. fontColor: 'red',
    35. },
    36. }]
    37. },
    38. scaleK: {
    39. visible: false
    40. },
    41. series: [{
    42. values: [59, 30, 65, 34, 40],
    43. backgroundColor: '#689F38',
    44. lineColor: '#33691E'
    45. }, {
    46. values: [76, 60, 11, 21, 99],
    47. backgroundColor: '#0288D1',
    48. lineColor: '#01579B'
    49. }]
    50. };
    51.  
    52. zingchart.render({
    53. id: 'myChart',
    54. data: chartConfig,
    55. height: '100%',
    56. width: '100%'
    57. });