• 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. zingchart.loadModules('maps, maps-usa_ak', function(e) {
    24.  
    25. let chartConfig = {
    26. shapes: [{
    27. type: 'zingchart.maps',
    28. options: {
    29. name: 'usa_ak',
    30. zooming: false,
    31. panning: false,
    32. scrolling: false,
    33. style: {
    34. controls: {
    35. placement: 'tr',
    36. zoomOut: {
    37. hoverState: {
    38. backgroundColor: 'red',
    39. fontColor: 'blue',
    40. },
    41. },
    42. zoomIn: {
    43. hoverState: {
    44. backgroundColor: 'red',
    45. fontColor: 'blue',
    46. },
    47. }
    48. }
    49. }
    50. }
    51. }]
    52. };
    53.  
    54. zingchart.render({
    55. id: 'myChart',
    56. data: chartConfig,
    57. height: 400,
    58. width: '100%',
    59. });
    60.  
    61. });
    62. </script>
    63. </body>
    64.  
    65. </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. zingchart.loadModules('maps, maps-usa_ak', function(e) {
    2.  
    3. let chartConfig = {
    4. shapes: [{
    5. type: 'zingchart.maps',
    6. options: {
    7. name: 'usa_ak',
    8. zooming: false,
    9. panning: false,
    10. scrolling: false,
    11. style: {
    12. controls: {
    13. placement: 'tr',
    14. zoomOut: {
    15. hoverState: {
    16. backgroundColor: 'red',
    17. fontColor: 'blue',
    18. },
    19. },
    20. zoomIn: {
    21. hoverState: {
    22. backgroundColor: 'red',
    23. fontColor: 'blue',
    24. },
    25. }
    26. }
    27. }
    28. }
    29. }]
    30. };
    31.  
    32. zingchart.render({
    33. id: 'myChart',
    34. data: chartConfig,
    35. height: 400,
    36. width: '100%',
    37. });
    38.  
    39. });