• 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. "value-box": {
    27.  
    28. },
    29. "background-color": "red",
    30. "border-width": 2,
    31. "border-color": "orange",
    32. "line-style": "dotted",
    33. "border-radius": "25px",
    34. "hover-state": {
    35. "visible": false
    36. },
    37. "rules": [{
    38. "rule": "%v >= 60",
    39. "background-color": "orange",
    40. "border-width": 2,
    41. "border-color": "yellow",
    42. "line-style": "solid",
    43. "border-radius": "50px"
    44. },
    45. {
    46. "rule": "%v == 99",
    47. "background-color": "yellow",
    48. "border-width": 2,
    49. "border-color": "green",
    50. "line-style": "dashed",
    51. "border-radius": "100px"
    52. }
    53. ]
    54. },
    55. "scale-x": {
    56. "labels": ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
    57. "line-color": "none",
    58. "guide": {
    59. "visible": false
    60. },
    61. "tick": {
    62. "visible": false
    63. },
    64. "placement": "opposite"
    65. },
    66. "scale-y": {
    67. "labels": ["SD", "OC", "LA"],
    68. "line-color": "none",
    69. "guide": {
    70. "visible": false
    71. },
    72. "tick": {
    73. "visible": false
    74. }
    75. },
    76. "series": [{
    77. "values": [59, 15, 5, 30, 60, 99, 28]
    78. },
    79. {
    80. "values": [34, 32, 87, 65, 9, 17, 40]
    81. },
    82. {
    83. "values": [90, 19, 50, 39, 12, 49, 14]
    84. }
    85. ]
    86. };
    87.  
    88.  
    89. zingchart.render({
    90. id: 'myChart',
    91. data: myConfig,
    92. height: "100%",
    93. width: "100%"
    94. });
    95. </script>
    96. </body>
    97.  
    98. </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. "value-box": {
    5.  
    6. },
    7. "background-color": "red",
    8. "border-width": 2,
    9. "border-color": "orange",
    10. "line-style": "dotted",
    11. "border-radius": "25px",
    12. "hover-state": {
    13. "visible": false
    14. },
    15. "rules": [{
    16. "rule": "%v >= 60",
    17. "background-color": "orange",
    18. "border-width": 2,
    19. "border-color": "yellow",
    20. "line-style": "solid",
    21. "border-radius": "50px"
    22. },
    23. {
    24. "rule": "%v == 99",
    25. "background-color": "yellow",
    26. "border-width": 2,
    27. "border-color": "green",
    28. "line-style": "dashed",
    29. "border-radius": "100px"
    30. }
    31. ]
    32. },
    33. "scale-x": {
    34. "labels": ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
    35. "line-color": "none",
    36. "guide": {
    37. "visible": false
    38. },
    39. "tick": {
    40. "visible": false
    41. },
    42. "placement": "opposite"
    43. },
    44. "scale-y": {
    45. "labels": ["SD", "OC", "LA"],
    46. "line-color": "none",
    47. "guide": {
    48. "visible": false
    49. },
    50. "tick": {
    51. "visible": false
    52. }
    53. },
    54. "series": [{
    55. "values": [59, 15, 5, 30, 60, 99, 28]
    56. },
    57. {
    58. "values": [34, 32, 87, 65, 9, 17, 40]
    59. },
    60. {
    61. "values": [90, 19, 50, 39, 12, 49, 14]
    62. }
    63. ]
    64. };
    65.  
    66.  
    67. zingchart.render({
    68. id: 'myChart',
    69. data: myConfig,
    70. height: "100%",
    71. width: "100%"
    72. });