• 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. title: {
    26. text: 'Hover over the scaleK items to see the tooltips.',
    27. fontSize: 12
    28. },
    29. scaleK: {
    30. labels: ['Label A', 'Label B', 'Label C', 'Label D', 'Label E', 'Label F', 'Label G', 'Label H'],
    31. tooltip: {
    32. backgroundColor: '#ffe6e6',
    33. borderColor: 'red',
    34. borderRadius: 3,
    35. borderWidth: 1,
    36. fontColor: 'red',
    37. fontFamily: 'Courier',
    38. fontSize: 12,
    39. fontStyle: 'normal',
    40. fontWeight: 'normal',
    41. padding: 5,
    42. text: 'scaleK: %v',
    43. bottomState: {
    44. backgroundColor: 'red',
    45. offsetX: '10px',
    46. offsetY: '10px',
    47. },
    48. }
    49. },
    50. scaleV: {
    51. values: '0:100:25'
    52. },
    53. plot: {
    54. aspect: 'area'
    55. },
    56. series: [{
    57. values: [75, 42, 67, 89, 68, 34, 67, 85]
    58. }]
    59. };
    60.  
    61. zingchart.render({
    62. id: 'myChart',
    63. data: chartConfig,
    64. height: '100%',
    65. width: '100%'
    66. });
    67. </script>
    68. </body>
    69.  
    70. </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. 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. bottomState: {
    22. backgroundColor: 'red',
    23. offsetX: '10px',
    24. offsetY: '10px',
    25. },
    26. }
    27. },
    28. scaleV: {
    29. values: '0:100:25'
    30. },
    31. plot: {
    32. aspect: 'area'
    33. },
    34. series: [{
    35. values: [75, 42, 67, 89, 68, 34, 67, 85]
    36. }]
    37. };
    38.  
    39. zingchart.render({
    40. id: 'myChart',
    41. data: chartConfig,
    42. height: '100%',
    43. width: '100%'
    44. });