• 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. height: 100%;
    13. width: 100%;
    14. margin: 0;
    15. padding: 0;
    16. }
    17.  
    18. #myChart {
    19. height: 100%;
    20. width: 100%;
    21. min-height: 150px;
    22. }
    23.  
    24. .zc-ref {
    25. display: none;
    26. }
    27. </style>
    28. </head>
    29.  
    30. <body>
    31. <div id="myChart"><a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a></div>
    32. <script>
    33. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    34. window.customText = function(e) {
    35. console.log(e)
    36. return {
    37. text: e.scaletext + ' ' + e.value
    38. }
    39. }
    40. var myConfig = {
    41. "graphset": [{
    42. "title": {
    43. "text": "Heatmap Tooltip not working",
    44. "font-size": "12px"
    45. },
    46. "utc": true,
    47. "series": [{
    48. "values": [4182.09, 2553.66, 6254.63, 13619.54, 3589.93, 1258.33]
    49. }],
    50. "plot": {
    51. "errors": null,
    52. "tooltip": {
    53. text: '%kt'
    54. },
    55. "aspect": "brightness"
    56. },
    57. "type": "heatmap",
    58. "scaleX": {
    59. "tooltip": {
    60. "background-color": "white",
    61. "visible": true
    62. },
    63. "transform": {
    64. "type": "date",
    65. "text": "%d-%m-%Y\n%G:%i:%s"
    66. },
    67. "items-overlap": true,
    68. "item": {
    69. "offsetY": 0,
    70. "angle": 0,
    71. "text": null,
    72. "offsetX": 0,
    73. "maxChars": 3
    74. },
    75. "max-items": 200,
    76. "labels": [1447531826188, 1447531826244, 1447531827234, 1447531829683, 1447531829892, 1447531832628]
    77. }
    78. }]
    79. }
    80.  
    81. zingchart.render({
    82. id: 'myChart',
    83. data: myConfig,
    84. height: '100%',
    85. width: '100%'
    86. });
    87. </script>
    88. </body>
    89.  
    90. </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"><a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a></div>
    13. </body>
    14.  
    15. </html>
    1. html,
    2. body {
    3. height: 100%;
    4. width: 100%;
    5. margin: 0;
    6. padding: 0;
    7. }
    8.  
    9. #myChart {
    10. height: 100%;
    11. width: 100%;
    12. min-height: 150px;
    13. }
    14.  
    15. .zc-ref {
    16. display: none;
    17. }
    1. window.customText = function(e) {
    2. console.log(e)
    3. return {
    4. text: e.scaletext + ' ' + e.value
    5. }
    6. }
    7. var myConfig = {
    8. "graphset": [{
    9. "title": {
    10. "text": "Heatmap Tooltip not working",
    11. "font-size": "12px"
    12. },
    13. "utc": true,
    14. "series": [{
    15. "values": [4182.09, 2553.66, 6254.63, 13619.54, 3589.93, 1258.33]
    16. }],
    17. "plot": {
    18. "errors": null,
    19. "tooltip": {
    20. text: '%kt'
    21. },
    22. "aspect": "brightness"
    23. },
    24. "type": "heatmap",
    25. "scaleX": {
    26. "tooltip": {
    27. "background-color": "white",
    28. "visible": true
    29. },
    30. "transform": {
    31. "type": "date",
    32. "text": "%d-%m-%Y\n%G:%i:%s"
    33. },
    34. "items-overlap": true,
    35. "item": {
    36. "offsetY": 0,
    37. "angle": 0,
    38. "text": null,
    39. "offsetX": 0,
    40. "maxChars": 3
    41. },
    42. "max-items": 200,
    43. "labels": [1447531826188, 1447531826244, 1447531827234, 1447531829683, 1447531829892, 1447531832628]
    44. }
    45. }]
    46. }
    47.  
    48. zingchart.render({
    49. id: 'myChart',
    50. data: myConfig,
    51. height: '100%',
    52. width: '100%'
    53. });