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