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