• 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='demo1'>Demo 1</button>
    17. <button class='btn btn-info' id='reload'>Reload</button>
    18. <pre id='output'></pre>
    19. <script>
    20. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    21. var myConfig = {
    22. 'type': 'line',
    23. 'series': [{
    24. 'values': [11, 26, 7, 44, 19]
    25. }]
    26. };
    27.  
    28. zingchart.render({
    29. id: 'demo-chart',
    30. data: myConfig,
    31. height: 400,
    32. width: '100%'
    33. });
    34.  
    35. demo1.addEventListener('click', function() {
    36. let output = zingchart.exec('demo-chart', 'destroy');
    37. zcdocs.demos.dump('destroy', output);
    38. });
    39.  
    40. reload.addEventListener('click', function() {
    41. let output = zingchart.render({
    42. id: 'demo-chart',
    43. data: myConfig,
    44. height: 400,
    45. width: '100%'
    46. });
    47. zcdocs.demos.dump('render', output);
    48. });
    49. </script>
    50. </body>
    51.  
    52. </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='demo1'>Demo 1</button>
    16. <button class='btn btn-info' id='reload'>Reload</button>
    17. <pre id='output'></pre>
    18. </body>
    19.  
    20. </html>
    1.  
    1. var myConfig = {
    2. 'type': 'line',
    3. 'series': [{
    4. 'values': [11, 26, 7, 44, 19]
    5. }]
    6. };
    7.  
    8. zingchart.render({
    9. id: 'demo-chart',
    10. data: myConfig,
    11. height: 400,
    12. width: '100%'
    13. });
    14.  
    15. demo1.addEventListener('click', function() {
    16. let output = zingchart.exec('demo-chart', 'destroy');
    17. zcdocs.demos.dump('destroy', output);
    18. });
    19.  
    20. reload.addEventListener('click', function() {
    21. let output = zingchart.render({
    22. id: 'demo-chart',
    23. data: myConfig,
    24. height: 400,
    25. width: '100%'
    26. });
    27. zcdocs.demos.dump('render', output);
    28. });