• 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. var myConfig = {
    24. "type": "heatmap",
    25. "plot": {
    26. "aspect": "vertical"
    27. },
    28. "plotarea": {
    29. "adjust-layout": "auto"
    30. },
    31. "scale-y": {
    32. "labels": ["0.7 and 1", "0 and 0.3", "0.2 and 1<br>(default)"]
    33. },
    34. "series": [{
    35. "values": [59, 15, 5, 30, 60, 99, 28, 33, 34, 51, 12, 30, 15, 39, 15, 71, 23, 51, 29, 20],
    36. "min-ratio": 0.7,
    37. "max-ratio": 1
    38. },
    39. {
    40. "values": [59, 15, 5, 30, 60, 99, 28, 33, 34, 51, 12, 30, 15, 39, 15, 71, 23, 51, 29, 20],
    41. "min-ratio": 0,
    42. "max-ratio": 0.3
    43. },
    44. {
    45. "values": [59, 15, 5, 30, 60, 99, 28, 33, 34, 51, 12, 30, 15, 39, 15, 71, 23, 51, 29, 20],
    46. "min-ratio": 0.2, //default
    47. "max-ratio": 1 //default
    48. }
    49. ]
    50. };
    51.  
    52. zingchart.render({
    53. id: 'myChart',
    54. data: myConfig,
    55. height: "100%",
    56. width: "100%"
    57. });
    58. </script>
    59. </body>
    60.  
    61. </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. var myConfig = {
    2. "type": "heatmap",
    3. "plot": {
    4. "aspect": "vertical"
    5. },
    6. "plotarea": {
    7. "adjust-layout": "auto"
    8. },
    9. "scale-y": {
    10. "labels": ["0.7 and 1", "0 and 0.3", "0.2 and 1<br>(default)"]
    11. },
    12. "series": [{
    13. "values": [59, 15, 5, 30, 60, 99, 28, 33, 34, 51, 12, 30, 15, 39, 15, 71, 23, 51, 29, 20],
    14. "min-ratio": 0.7,
    15. "max-ratio": 1
    16. },
    17. {
    18. "values": [59, 15, 5, 30, 60, 99, 28, 33, 34, 51, 12, 30, 15, 39, 15, 71, 23, 51, 29, 20],
    19. "min-ratio": 0,
    20. "max-ratio": 0.3
    21. },
    22. {
    23. "values": [59, 15, 5, 30, 60, 99, 28, 33, 34, 51, 12, 30, 15, 39, 15, 71, 23, 51, 29, 20],
    24. "min-ratio": 0.2, //default
    25. "max-ratio": 1 //default
    26. }
    27. ]
    28. };
    29.  
    30. zingchart.render({
    31. id: 'myChart',
    32. data: myConfig,
    33. height: "100%",
    34. width: "100%"
    35. });