• 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. height: 100%;
    13. width: 100%;
    14. margin: 0;
    15. padding: 0;
    16. }
    17.  
    18. #myChart {
    19. height: 100%;
    20. width: 100%;
    21. min-height: 150px;
    22. }
    23.  
    24. .zc-ref {
    25. display: none;
    26. }
    27. </style>
    28. </head>
    29.  
    30. <body>
    31. <div id="myChart"><a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a></div>
    32. <script>
    33. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    34. var myConfig = {
    35. type: 'radar',
    36. title: {
    37. text: 'Hover over the scaleK items to see the tooltips.',
    38. fontSize: 12
    39. },
    40. scaleK: {
    41. labels: ['Label A', 'Label B', 'Label C', 'Label D', 'Label E', 'Label F', 'Label G', 'Label H'],
    42. tooltip: {
    43. backgroundColor: '#ffe6e6',
    44. borderColor: 'red',
    45. borderRadius: 3,
    46. borderWidth: 1,
    47. fontColor: 'red',
    48. fontFamily: 'Courier',
    49. fontSize: 12,
    50. fontStyle: 'normal',
    51. fontWeight: 'normal',
    52. padding: 5,
    53. text: 'scaleK: %v'
    54. }
    55. },
    56. scaleV: {
    57. values: '0:100:25'
    58. },
    59. plot: {
    60. aspect: 'area'
    61. },
    62. series: [{
    63. values: [75, 42, 67, 89, 68, 34, 67, 85]
    64. }]
    65. };
    66.  
    67. zingchart.render({
    68. id: 'myChart',
    69. data: myConfig,
    70. height: 400,
    71. width: '100%'
    72. });
    73. </script>
    74. </body>
    75.  
    76. </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"><a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a></div>
    13. </body>
    14.  
    15. </html>
    1. html,
    2. body {
    3. height: 100%;
    4. width: 100%;
    5. margin: 0;
    6. padding: 0;
    7. }
    8.  
    9. #myChart {
    10. height: 100%;
    11. width: 100%;
    12. min-height: 150px;
    13. }
    14.  
    15. .zc-ref {
    16. display: none;
    17. }
    1. var myConfig = {
    2. type: 'radar',
    3. title: {
    4. text: 'Hover over the scaleK items to see the tooltips.',
    5. fontSize: 12
    6. },
    7. scaleK: {
    8. labels: ['Label A', 'Label B', 'Label C', 'Label D', 'Label E', 'Label F', 'Label G', 'Label H'],
    9. tooltip: {
    10. backgroundColor: '#ffe6e6',
    11. borderColor: 'red',
    12. borderRadius: 3,
    13. borderWidth: 1,
    14. fontColor: 'red',
    15. fontFamily: 'Courier',
    16. fontSize: 12,
    17. fontStyle: 'normal',
    18. fontWeight: 'normal',
    19. padding: 5,
    20. text: 'scaleK: %v'
    21. }
    22. },
    23. scaleV: {
    24. values: '0:100:25'
    25. },
    26. plot: {
    27. aspect: 'area'
    28. },
    29. series: [{
    30. values: [75, 42, 67, 89, 68, 34, 67, 85]
    31. }]
    32. };
    33.  
    34. zingchart.render({
    35. id: 'myChart',
    36. data: myConfig,
    37. height: 400,
    38. width: '100%'
    39. });