• 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>
    12. #testId {
    13. font-size: 23px;
    14. }
    15. </style>
    16. </head>
    17.  
    18. <body>
    19. <div id='demo-chart'></div>
    20. <button class='btn btn-info' id='demo1'>Disable</button>
    21. <button class='btn btn-danger' id='demo2'>Enable</button>
    22. <pre id='output'></pre>
    23. <script>
    24. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    25. var myConfig = {
    26. 'type': 'line',
    27. 'series': [{
    28. 'values': [11, 26, 7, 44, 11]
    29. },
    30. {
    31. 'values': [42, 13, 21, 15, 33]
    32. }
    33. ]
    34. };
    35.  
    36. zingchart.render({
    37. id: 'demo-chart',
    38. data: myConfig,
    39. height: 400,
    40. width: '100%'
    41. });
    42.  
    43. demo1.addEventListener('click', function() {
    44. let output = zingchart.exec('demo-chart', 'disable', {
    45. 'text': '<p id="testId"> Please wait until we <br> do something...<p>'
    46. });
    47. zcdocs.demos.dump('disable', output);
    48. });
    49. demo2.addEventListener('click', function() {
    50. let output = zingchart.exec('demo-chart', 'enable');
    51. zcdocs.demos.dump('enable', output);
    52. });
    53. </script>
    54. </body>
    55.  
    56. </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'>Disable</button>
    16. <button class='btn btn-danger' id='demo2'>Enable</button>
    17. <pre id='output'></pre>
    18. </body>
    19.  
    20. </html>
    1. #testId {
    2. font-size: 23px;
    3. }
    1. var myConfig = {
    2. 'type': 'line',
    3. 'series': [{
    4. 'values': [11, 26, 7, 44, 11]
    5. },
    6. {
    7. 'values': [42, 13, 21, 15, 33]
    8. }
    9. ]
    10. };
    11.  
    12. zingchart.render({
    13. id: 'demo-chart',
    14. data: myConfig,
    15. height: 400,
    16. width: '100%'
    17. });
    18.  
    19. demo1.addEventListener('click', function() {
    20. let output = zingchart.exec('demo-chart', 'disable', {
    21. 'text': '<p id="testId"> Please wait until we <br> do something...<p>'
    22. });
    23. zcdocs.demos.dump('disable', output);
    24. });
    25. demo2.addEventListener('click', function() {
    26. let output = zingchart.exec('demo-chart', 'enable');
    27. zcdocs.demos.dump('enable', output);
    28. });