• 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="//www.zingchart.com/scripts/zcDocs.js"></script>
    8. <link href='//www.zingchart.com/css/zcDocs.css' rel='stylesheet' type='text/css'>
    9.  
    10. <script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
    11. <style></style>
    12. </head>
    13.  
    14. <body>
    15. <div id='demo-chart'></div>
    16. <button class='btn btn-info' id='reload'>Reload</button>
    17. <pre id='output'></pre>
    18. <script>
    19. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    20. var myConfig = {
    21. 'type': 'bar',
    22. 'legend': {},
    23. 'series': [{
    24. 'values': [11, 26, 7, 44, 11]
    25. },
    26. {
    27. 'values': [42, 13, 21, 15, 33]
    28. }
    29. ]
    30. };
    31.  
    32. reload.addEventListener('click', function() {
    33. zingchart.exec('demo-chart', 'reload');
    34. });
    35.  
    36. // You can use the context menu reload as well
    37. zingchart.bind('demo-chart', 'reload', function(e) {
    38. zcdocs.demos.dump('reload', e);
    39. });
    40.  
    41. zingchart.render({
    42. id: 'demo-chart',
    43. data: myConfig,
    44. height: 400,
    45. width: '100%'
    46. });
    47. </script>
    48. </body>
    49.  
    50. </html>
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7. <script src="//www.zingchart.com/scripts/zcDocs.js"></script>
    8. <link href='//www.zingchart.com/css/zcDocs.css' rel='stylesheet' type='text/css'>
    9.  
    10. <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    11. </head>
    12.  
    13. <body>
    14. <div id='demo-chart'></div>
    15. <button class='btn btn-info' id='reload'>Reload</button>
    16. <pre id='output'></pre>
    17. </body>
    18.  
    19. </html>
    1.  
    1. var myConfig = {
    2. 'type': 'bar',
    3. 'legend': {},
    4. 'series': [{
    5. 'values': [11, 26, 7, 44, 11]
    6. },
    7. {
    8. 'values': [42, 13, 21, 15, 33]
    9. }
    10. ]
    11. };
    12.  
    13. reload.addEventListener('click', function() {
    14. zingchart.exec('demo-chart', 'reload');
    15. });
    16.  
    17. // You can use the context menu reload as well
    18. zingchart.bind('demo-chart', 'reload', function(e) {
    19. zcdocs.demos.dump('reload', e);
    20. });
    21.  
    22. zingchart.render({
    23. id: 'demo-chart',
    24. data: myConfig,
    25. height: 400,
    26. width: '100%'
    27. });