• 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. callout: true,
    44. calloutHeight: 15,
    45. calloutPosition: 'bottom',
    46. calloutWidth: 0,
    47. calloutTip: {
    48. type: 'circle',
    49. backgroundColor: '#fff',
    50. borderWidth: 2,
    51. borderColor: '#f60',
    52. offsetY: 5,
    53. size: 5,
    54. },
    55. }
    56. },
    57. scaleV: {
    58. values: '0:100:25'
    59. },
    60. plot: {
    61. aspect: 'area'
    62. },
    63. series: [{
    64. values: [75, 42, 67, 89, 68, 34, 67, 85]
    65. }]
    66. };
    67.  
    68. zingchart.render({
    69. id: 'myChart',
    70. data: chartConfig,
    71. height: '100%',
    72. width: '100%'
    73. });
    74. </script>
    75. </body>
    76.  
    77. </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. callout: true,
    22. calloutHeight: 15,
    23. calloutPosition: 'bottom',
    24. calloutWidth: 0,
    25. calloutTip: {
    26. type: 'circle',
    27. backgroundColor: '#fff',
    28. borderWidth: 2,
    29. borderColor: '#f60',
    30. offsetY: 5,
    31. size: 5,
    32. },
    33. }
    34. },
    35. scaleV: {
    36. values: '0:100:25'
    37. },
    38. plot: {
    39. aspect: 'area'
    40. },
    41. series: [{
    42. values: [75, 42, 67, 89, 68, 34, 67, 85]
    43. }]
    44. };
    45.  
    46. zingchart.render({
    47. id: 'myChart',
    48. data: chartConfig,
    49. height: '100%',
    50. width: '100%'
    51. });