• 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. mediaRules: [{
    38. maxWidth: 400,
    39. backgroundColor: 'red',
    40. fontColor: 'blue',
    41. }],
    42. },
    43. zoomIn: {
    44. mediaRules: [{
    45. maxWidth: 400,
    46. backgroundColor: 'red',
    47. fontColor: 'blue',
    48. },
    49. }]
    50. }
    51. }
    52. }
    53. }]
    54. };
    55.  
    56. zingchart.render({
    57. id: 'myChart',
    58. data: chartConfig,
    59. height: 400,
    60. width: '100%',
    61. });
    62.  
    63. });
    64. </script>
    65. </body>
    66.  
    67. </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. mediaRules: [{
    16. maxWidth: 400,
    17. backgroundColor: 'red',
    18. fontColor: 'blue',
    19. }],
    20. },
    21. zoomIn: {
    22. mediaRules: [{
    23. maxWidth: 400,
    24. backgroundColor: 'red',
    25. fontColor: 'blue',
    26. },
    27. }]
    28. }
    29. }
    30. }
    31. }]
    32. };
    33.  
    34. zingchart.render({
    35. id: 'myChart',
    36. data: chartConfig,
    37. height: 400,
    38. width: '100%',
    39. });
    40.  
    41. });