• 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. tooltip: {
    33. text: 'Scale Value: %v',
    34. topState: {
    35. backgroundColor: 'red',
    36. offsetX: '10px',
    37. offsetY: '10px',
    38. },
    39. },
    40. item: {
    41. fontColor: '#607D8B',
    42. backgroundColor: 'white',
    43. borderColor: '#aeaeae',
    44. borderWidth: 1,
    45. padding: 3,
    46. borderRadius: 10,
    47. offsetX: 5
    48. },
    49. refLine: {
    50. lineColor: '#607D8B'
    51. },
    52. tick: {
    53. lineColor: '#607D8B',
    54. length: 5,
    55. size: 5
    56. },
    57. guide: {
    58. lineColor: '#CFD8DC',
    59. lineStyle: 'solid'
    60. }
    61. },
    62. scaleK: {
    63. visible: false
    64. },
    65. series: [{
    66. values: [59, 30, 65, 34, 40],
    67. backgroundColor: '#689F38',
    68. lineColor: '#33691E'
    69. }, {
    70. values: [76, 60, 11, 21, 99],
    71. backgroundColor: '#0288D1',
    72. lineColor: '#01579B'
    73. }]
    74. };
    75.  
    76. zingchart.render({
    77. id: 'myChart',
    78. data: chartConfig,
    79. height: '100%',
    80. width: '100%'
    81. });
    82. </script>
    83. </body>
    84.  
    85. </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. tooltip: {
    11. text: 'Scale Value: %v',
    12. topState: {
    13. backgroundColor: 'red',
    14. offsetX: '10px',
    15. offsetY: '10px',
    16. },
    17. },
    18. item: {
    19. fontColor: '#607D8B',
    20. backgroundColor: 'white',
    21. borderColor: '#aeaeae',
    22. borderWidth: 1,
    23. padding: 3,
    24. borderRadius: 10,
    25. offsetX: 5
    26. },
    27. refLine: {
    28. lineColor: '#607D8B'
    29. },
    30. tick: {
    31. lineColor: '#607D8B',
    32. length: 5,
    33. size: 5
    34. },
    35. guide: {
    36. lineColor: '#CFD8DC',
    37. lineStyle: 'solid'
    38. }
    39. },
    40. scaleK: {
    41. visible: false
    42. },
    43. series: [{
    44. values: [59, 30, 65, 34, 40],
    45. backgroundColor: '#689F38',
    46. lineColor: '#33691E'
    47. }, {
    48. values: [76, 60, 11, 21, 99],
    49. backgroundColor: '#0288D1',
    50. lineColor: '#01579B'
    51. }]
    52. };
    53.  
    54. zingchart.render({
    55. id: 'myChart',
    56. data: chartConfig,
    57. height: '100%',
    58. width: '100%'
    59. });