• 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. <script nonce="undefined" src='//code.jquery.com/jquery-2.1.4.min.js'></script>
    10.  
    11. <script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
    12. <style></style>
    13. </head>
    14.  
    15. <body>
    16. <div id='demo-chart'></div>
    17. <button class='btn btn-info' id='demo1'>Print</button>
    18. <pre id='output'></pre>
    19. <script>
    20. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    21. var myConfig = {
    22. 'graphset': [{
    23. 'type': 'line',
    24. 'legend': {
    25.  
    26. },
    27. 'series': [{
    28. 'text': 'Apple',
    29. 'values': [1, 4, 3, 6, 0, 7, 2, 5, 8]
    30. },
    31. {
    32. 'text': 'Peaches',
    33. 'values': [7, 2, 5, 1, 4, 3, 8, 0, 6]
    34. }
    35. ]
    36. }]
    37. };
    38.  
    39. zingchart.render({
    40. id: 'demo-chart',
    41. data: myConfig,
    42. height: 400,
    43. width: '100%'
    44. });
    45.  
    46. demo1.addEventListener('click', function() {
    47. zingchart.exec('demo-chart', 'print');
    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. <script src='//code.jquery.com/jquery-2.1.4.min.js'></script>
    10.  
    11. <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    12. </head>
    13.  
    14. <body>
    15. <div id='demo-chart'></div>
    16. <button class='btn btn-info' id='demo1'>Print</button>
    17. <pre id='output'></pre>
    18. </body>
    19.  
    20. </html>
    1.  
    1. var myConfig = {
    2. 'graphset': [{
    3. 'type': 'line',
    4. 'legend': {
    5.  
    6. },
    7. 'series': [{
    8. 'text': 'Apple',
    9. 'values': [1, 4, 3, 6, 0, 7, 2, 5, 8]
    10. },
    11. {
    12. 'text': 'Peaches',
    13. 'values': [7, 2, 5, 1, 4, 3, 8, 0, 6]
    14. }
    15. ]
    16. }]
    17. };
    18.  
    19. zingchart.render({
    20. id: 'demo-chart',
    21. data: myConfig,
    22. height: 400,
    23. width: '100%'
    24. });
    25.  
    26. demo1.addEventListener('click', function() {
    27. zingchart.exec('demo-chart', 'print');
    28. });