• 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. var myConfig = {
    24. "type": "radar",
    25. "plot": {
    26. "aspect": "rose"
    27. },
    28. "scale-k": {
    29. "labels": ["Vitamin A", "Vitamin B", "Vitamin C", "Vitamin D", "Vitamin E"],
    30. "item": {
    31. "font-color": "orange",
    32. "font-family": "Georgia",
    33. "font-size": 12,
    34. "font-weight": "bold",
    35. "font-style": "italic"
    36. },
    37. "tick": {
    38. "line-color": "orange",
    39. "line-width": 3,
    40. "size": 15,
    41. "placement": "outer"
    42. },
    43. "guide": {
    44. "line-color": "red",
    45. "line-width": 1,
    46. "line-style": "solid",
    47. "background-color": "#f0f0f5 #e0e0eb"
    48. }
    49. },
    50. "scale-v": {
    51. "visible": false
    52. },
    53. "series": [{
    54. "values": [59, 30, 65, 34, 40]
    55. },
    56. {
    57. "values": [76, 60, 11, 21, 99]
    58. }
    59. ]
    60. };
    61.  
    62. zingchart.render({
    63. id: 'myChart',
    64. data: myConfig,
    65. height: '100%',
    66. width: '100%'
    67. });
    68. </script>
    69. </body>
    70.  
    71. </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. var myConfig = {
    2. "type": "radar",
    3. "plot": {
    4. "aspect": "rose"
    5. },
    6. "scale-k": {
    7. "labels": ["Vitamin A", "Vitamin B", "Vitamin C", "Vitamin D", "Vitamin E"],
    8. "item": {
    9. "font-color": "orange",
    10. "font-family": "Georgia",
    11. "font-size": 12,
    12. "font-weight": "bold",
    13. "font-style": "italic"
    14. },
    15. "tick": {
    16. "line-color": "orange",
    17. "line-width": 3,
    18. "size": 15,
    19. "placement": "outer"
    20. },
    21. "guide": {
    22. "line-color": "red",
    23. "line-width": 1,
    24. "line-style": "solid",
    25. "background-color": "#f0f0f5 #e0e0eb"
    26. }
    27. },
    28. "scale-v": {
    29. "visible": false
    30. },
    31. "series": [{
    32. "values": [59, 30, 65, 34, 40]
    33. },
    34. {
    35. "values": [76, 60, 11, 21, 99]
    36. }
    37. ]
    38. };
    39.  
    40. zingchart.render({
    41. id: 'myChart',
    42. data: myConfig,
    43. height: '100%',
    44. width: '100%'
    45. });