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