• Edit
  • Download
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7. <script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
    8. <script nonce="undefined">
    9. zingchart.MODULESDIR = "https://cdn.zingchart.com/modules/";
    10. ZC.LICENSE = ["b55b025e438fa8a98e32482b5f768ff5"];
    11. </script>
    12. <style>
    13. html,
    14. body {
    15. height: 100%;
    16. width: 100%;
    17. margin: 0;
    18. padding: 0;
    19. }
    20.  
    21. #myChart {
    22. height: 100%;
    23. width: 100%;
    24. min-height: 150px;
    25. }
    26.  
    27. .zc-ref {
    28. display: none;
    29. }
    30. </style>
    31. </head>
    32.  
    33. <body>
    34. <div id="myChart"><a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a></div>
    35. <script>
    36. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    37. var myConfig = {
    38. type: 'bar',
    39. series: [{
    40. values: [35, 42, 67, 89, 25, 34, 67, 85]
    41. }]
    42. };
    43.  
    44. zingchart.render({
    45. id: 'myChart',
    46. data: myConfig,
    47. height: '100%',
    48. width: '100%'
    49. });
    50.  
    51. zingchart.exec('myChart', 'exportimage', {
    52. download: true,
    53. format: 'pdf',
    54. filename: 'sunburst'
    55. });
    56. </script>
    57. </body>
    58.  
    59. </html>
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7. <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    8. <script>
    9. zingchart.MODULESDIR = "https://cdn.zingchart.com/modules/";
    10. ZC.LICENSE = ["b55b025e438fa8a98e32482b5f768ff5"];
    11. </script>
    12. </head>
    13.  
    14. <body>
    15. <div id="myChart"><a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a></div>
    16. </body>
    17.  
    18. </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 myConfig = {
    2. type: 'bar',
    3. series: [{
    4. values: [35, 42, 67, 89, 25, 34, 67, 85]
    5. }]
    6. };
    7.  
    8. zingchart.render({
    9. id: 'myChart',
    10. data: myConfig,
    11. height: '100%',
    12. width: '100%'
    13. });
    14.  
    15. zingchart.exec('myChart', 'exportimage', {
    16. download: true,
    17. format: 'pdf',
    18. filename: 'sunburst'
    19. });