• 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. plot: {
    26. aspect: 'area',
    27. animation: {
    28. effect: 3,
    29. sequence: 1,
    30. speed: 700
    31. }
    32. },
    33. scaleV: {
    34. visible: false
    35. },
    36. scaleK: {
    37. transform: {
    38. type: 'date',
    39. text: '%m/%d/%y'
    40. },
    41. values: '1629071710000:1660607710000:2629743000',
    42. item: {
    43. fontColor: '#607D8B',
    44. backgroundColor: "white",
    45. borderColor: "#aeaeae",
    46. borderWidth: 1,
    47. padding: '5 10',
    48. borderRadius: 10,
    49. },
    50. refLine: {
    51. lineColor: '#c10000'
    52. },
    53. tick: {
    54. lineColor: '#59869c',
    55. lineWidth: 2,
    56. lineStyle: 'dotted',
    57. size: 20
    58. },
    59. guide: {
    60. lineColor: "#607D8B",
    61. lineStyle: 'solid',
    62. alpha: 0.3,
    63. backgroundColor: "#c5c5c5 #718eb4"
    64. },
    65. tooltip: {
    66. text: '%data-test'
    67. },
    68. mediaRules: [{
    69. maxWidth: 400,
    70. backgroundColor: 'red'
    71. }]
    72. },
    73. series: [{
    74. values: [59, 39, 38, 19, 21, 35],
    75. },
    76. {
    77. values: [20, 20, 54, 41, 41, 35],
    78. lineColor: '#53a534',
    79. backgroundColor: '#689F38'
    80. }
    81. ]
    82. };
    83.  
    84. zingchart.render({
    85. id: 'myChart',
    86. data: chartConfig,
    87. height: '100%',
    88. width: '100%'
    89. });
    90. </script>
    91. </body>
    92.  
    93. </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. plot: {
    4. aspect: 'area',
    5. animation: {
    6. effect: 3,
    7. sequence: 1,
    8. speed: 700
    9. }
    10. },
    11. scaleV: {
    12. visible: false
    13. },
    14. scaleK: {
    15. transform: {
    16. type: 'date',
    17. text: '%m/%d/%y'
    18. },
    19. values: '1629071710000:1660607710000:2629743000',
    20. item: {
    21. fontColor: '#607D8B',
    22. backgroundColor: "white",
    23. borderColor: "#aeaeae",
    24. borderWidth: 1,
    25. padding: '5 10',
    26. borderRadius: 10,
    27. },
    28. refLine: {
    29. lineColor: '#c10000'
    30. },
    31. tick: {
    32. lineColor: '#59869c',
    33. lineWidth: 2,
    34. lineStyle: 'dotted',
    35. size: 20
    36. },
    37. guide: {
    38. lineColor: "#607D8B",
    39. lineStyle: 'solid',
    40. alpha: 0.3,
    41. backgroundColor: "#c5c5c5 #718eb4"
    42. },
    43. tooltip: {
    44. text: '%data-test'
    45. },
    46. mediaRules: [{
    47. maxWidth: 400,
    48. backgroundColor: 'red'
    49. }]
    50. },
    51. series: [{
    52. values: [59, 39, 38, 19, 21, 35],
    53. },
    54. {
    55. values: [20, 20, 54, 41, 41, 35],
    56. lineColor: '#53a534',
    57. backgroundColor: '#689F38'
    58. }
    59. ]
    60. };
    61.  
    62. zingchart.render({
    63. id: 'myChart',
    64. data: chartConfig,
    65. height: '100%',
    66. width: '100%'
    67. });