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