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