• 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="zc"></div>
    32. <script>
    33. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    34. var mapData = {
    35. type: 'tilemap',
    36. options: {
    37. map: 'USA',
    38. type: 'circle',
    39. sizeFactor: 1,
    40. tile: {
    41. tooltip: {
    42. backgroundColor: 'red',
    43. borderWidth: 1,
    44. borderColor: '#000',
    45. },
    46. }
    47. },
    48. };
    49.  
    50. zingchart.render({
    51. id: 'zc',
    52. data: mapData
    53. });
    54. </script>
    55. </body>
    56.  
    57. </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="zc"></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. var mapData = {
    2. type: 'tilemap',
    3. options: {
    4. map: 'USA',
    5. type: 'circle',
    6. sizeFactor: 1,
    7. tile: {
    8. tooltip: {
    9. backgroundColor: 'red',
    10. borderWidth: 1,
    11. borderColor: '#000',
    12. },
    13. }
    14. },
    15. };
    16.  
    17. zingchart.render({
    18. id: 'zc',
    19. data: mapData
    20. });