• 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. mediaRules: [{
    44. maxWidth: 400,
    45. backgroundColor: 'red',
    46. }],
    47. }
    48. },
    49. scaleV: {
    50. values: '0:100:25'
    51. },
    52. plot: {
    53. aspect: 'area'
    54. },
    55. series: [{
    56. values: [75, 42, 67, 89, 68, 34, 67, 85]
    57. }]
    58. };
    59.  
    60. zingchart.render({
    61. id: 'myChart',
    62. data: chartConfig,
    63. height: '100%',
    64. width: '100%'
    65. });
    66. </script>
    67. </body>
    68.  
    69. </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. mediaRules: [{
    22. maxWidth: 400,
    23. backgroundColor: 'red',
    24. }],
    25. }
    26. },
    27. scaleV: {
    28. values: '0:100:25'
    29. },
    30. plot: {
    31. aspect: 'area'
    32. },
    33. series: [{
    34. values: [75, 42, 67, 89, 68, 34, 67, 85]
    35. }]
    36. };
    37.  
    38. zingchart.render({
    39. id: 'myChart',
    40. data: chartConfig,
    41. height: '100%',
    42. width: '100%'
    43. });