• 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></style>
    10. </head>
    11.  
    12. <body>
    13. <div id='myChart'></div>
    14. <script>
    15. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    16. zingchart.loadModules('maps, maps-usa_hi', function(e) {
    17. zingchart.render({
    18. id: 'myChart',
    19. data: {
    20. shapes: [{
    21. type: 'zingchart.maps',
    22. options: {
    23. name: 'usa_hi',
    24. zoom: 2,
    25. offsetX: -200,
    26. offsetY: -200,
    27.  
    28. style: {
    29. backgroundColor: '#C8E6C9 #CDDC39',
    30. borderColor: '#81C784',
    31. hoverState: {
    32. backgroundColor: '#81C784 #AFB42B',
    33. borderColor: '#4CAF50',
    34. }
    35. }
    36. }
    37. }],
    38. backgroundColor: '#BBDEFB #7986CB'
    39. },
    40. height: 400,
    41. width: '100%'
    42. });
    43. });
    44. </script>
    45. </body>
    46.  
    47. </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.  
    1. zingchart.loadModules('maps, maps-usa_hi', function(e) {
    2. zingchart.render({
    3. id: 'myChart',
    4. data: {
    5. shapes: [{
    6. type: 'zingchart.maps',
    7. options: {
    8. name: 'usa_hi',
    9. zoom: 2,
    10. offsetX: -200,
    11. offsetY: -200,
    12.  
    13. style: {
    14. backgroundColor: '#C8E6C9 #CDDC39',
    15. borderColor: '#81C784',
    16. hoverState: {
    17. backgroundColor: '#81C784 #AFB42B',
    18. borderColor: '#4CAF50',
    19. }
    20. }
    21. }
    22. }],
    23. backgroundColor: '#BBDEFB #7986CB'
    24. },
    25. height: 400,
    26. width: '100%'
    27. });
    28. });