• 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. "tooltip-text": "%v Apples",
    35. "rules": [{
    36. "rule": "%v >= 60",
    37. "background-color": "orange",
    38. "border-width": 2,
    39. "border-color": "yellow",
    40. "line-style": "solid",
    41. "border-radius": "50px",
    42. "tooltip-text": "%v Oranges"
    43. },
    44. {
    45. "rule": "%v == 99",
    46. "background-color": "yellow",
    47. "border-width": 2,
    48. "border-color": "green",
    49. "line-style": "dashed",
    50. "border-radius": "100px",
    51. "tooltip-text": "%v Bananas"
    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. zingchart.render({
    89. id: 'myChart',
    90. data: myConfig,
    91. height: "100%",
    92. width: "100%"
    93. });
    94. </script>
    95. </body>
    96.  
    97. </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. "tooltip-text": "%v Apples",
    13. "rules": [{
    14. "rule": "%v >= 60",
    15. "background-color": "orange",
    16. "border-width": 2,
    17. "border-color": "yellow",
    18. "line-style": "solid",
    19. "border-radius": "50px",
    20. "tooltip-text": "%v Oranges"
    21. },
    22. {
    23. "rule": "%v == 99",
    24. "background-color": "yellow",
    25. "border-width": 2,
    26. "border-color": "green",
    27. "line-style": "dashed",
    28. "border-radius": "100px",
    29. "tooltip-text": "%v Bananas"
    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. zingchart.render({
    67. id: 'myChart',
    68. data: myConfig,
    69. height: "100%",
    70. width: "100%"
    71. });