• 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. tooltip: {
    38. callout: true,
    39. calloutHeight: 15,
    40. calloutPosition: 'bottom',
    41. calloutWidth: 0,
    42. calloutTip: {
    43. type: 'circle',
    44. backgroundColor: '#fff',
    45. borderWidth: 2,
    46. borderColor: '#f60',
    47. offsetY: 5,
    48. size: 5,
    49. },
    50. }
    51. },
    52. zoomIn: {
    53. tooltip: {
    54. callout: true,
    55. calloutHeight: 15,
    56. calloutPosition: 'bottom',
    57. calloutWidth: 0,
    58. calloutTip: {
    59. type: 'circle',
    60. backgroundColor: '#fff',
    61. borderWidth: 2,
    62. borderColor: '#f60',
    63. offsetY: 5,
    64. size: 5,
    65. },
    66. }
    67. }
    68. }
    69. }
    70. }
    71. }]
    72. };
    73.  
    74. zingchart.render({
    75. id: 'myChart',
    76. data: chartConfig,
    77. height: 400,
    78. width: '100%',
    79. });
    80.  
    81. });
    82. </script>
    83. </body>
    84.  
    85. </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. tooltip: {
    16. callout: true,
    17. calloutHeight: 15,
    18. calloutPosition: 'bottom',
    19. calloutWidth: 0,
    20. calloutTip: {
    21. type: 'circle',
    22. backgroundColor: '#fff',
    23. borderWidth: 2,
    24. borderColor: '#f60',
    25. offsetY: 5,
    26. size: 5,
    27. },
    28. }
    29. },
    30. zoomIn: {
    31. tooltip: {
    32. callout: true,
    33. calloutHeight: 15,
    34. calloutPosition: 'bottom',
    35. calloutWidth: 0,
    36. calloutTip: {
    37. type: 'circle',
    38. backgroundColor: '#fff',
    39. borderWidth: 2,
    40. borderColor: '#f60',
    41. offsetY: 5,
    42. size: 5,
    43. },
    44. }
    45. }
    46. }
    47. }
    48. }
    49. }]
    50. };
    51.  
    52. zingchart.render({
    53. id: 'myChart',
    54. data: chartConfig,
    55. height: 400,
    56. width: '100%',
    57. });
    58.  
    59. });