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