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