• 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></style>
    10. </head>
    11.  
    12. <body>
    13. <div id='myChart'></div>
    14. <script>
    15. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    16. var myConfig = {
    17. type: 'radar',
    18. plot: {
    19. aspect: 'area'
    20. },
    21. series: [{
    22. values: [35, 42, 67, 89, 25, 34, 67, 85]
    23. }],
    24.  
    25. scaleK: {
    26. labels: ['scaleLabelA', 'scaleLabelB', 'scaleLabelC', 'scaleLabelD', 'scaleLabelE', 'scaleLabelF', 'scaleLabelG', 'scaleLabelH'],
    27. item: {
    28. alpha: 1,
    29. angle: 0,
    30. backgroundColor: '#ffe6e6',
    31. borderColor: 'red',
    32. borderRadius: 3,
    33. borderWidth: 1,
    34. fontColor: 'red',
    35. fontFamily: 'Courier',
    36. fontSize: 12,
    37. fontStyle: 'normal',
    38. fontWeight: 'normal',
    39. padding: 5,
    40. textAlpha: 1,
    41.  
    42. mediaRules: [{
    43. maxWidth: 400,
    44. backgroundColor: '#b5b5ff',
    45. borderColor: 'blue',
    46. fontColor: 'blue',
    47. }]
    48. }
    49. },
    50. scaleV: {
    51. values: '0:100:25'
    52. }
    53. };
    54.  
    55. zingchart.render({
    56. id: 'myChart',
    57. data: myConfig,
    58. height: 400,
    59. width: '100%'
    60. });
    61. </script>
    62. </body>
    63.  
    64. </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.  
    1. var myConfig = {
    2. type: 'radar',
    3. plot: {
    4. aspect: 'area'
    5. },
    6. series: [{
    7. values: [35, 42, 67, 89, 25, 34, 67, 85]
    8. }],
    9.  
    10. scaleK: {
    11. labels: ['scaleLabelA', 'scaleLabelB', 'scaleLabelC', 'scaleLabelD', 'scaleLabelE', 'scaleLabelF', 'scaleLabelG', 'scaleLabelH'],
    12. item: {
    13. alpha: 1,
    14. angle: 0,
    15. backgroundColor: '#ffe6e6',
    16. borderColor: 'red',
    17. borderRadius: 3,
    18. borderWidth: 1,
    19. fontColor: 'red',
    20. fontFamily: 'Courier',
    21. fontSize: 12,
    22. fontStyle: 'normal',
    23. fontWeight: 'normal',
    24. padding: 5,
    25. textAlpha: 1,
    26.  
    27. mediaRules: [{
    28. maxWidth: 400,
    29. backgroundColor: '#b5b5ff',
    30. borderColor: 'blue',
    31. fontColor: 'blue',
    32. }]
    33. }
    34. },
    35. scaleV: {
    36. values: '0:100:25'
    37. }
    38. };
    39.  
    40. zingchart.render({
    41. id: 'myChart',
    42. data: myConfig,
    43. height: 400,
    44. width: '100%'
    45. });