• 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="http://www.zingchart.com/scripts/zcDocs.js"></script>
    8. <link href='http://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='resett'>Reset</button>
    17. <button class='btn btn-info' id='demo1'>Demo 1</button>
    18. <button class='btn btn-info' id='demo2'>Demo 2</button>
    19. <pre id='output'></pre>
    20. <script>
    21. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    22. var myConfig = {
    23. 'type': 'line',
    24. 'series': [{
    25. 'values': [11, 26, 7, 44, 19]
    26. }]
    27. };
    28. zingchart.render({
    29. id: 'demo-chart',
    30. data: myConfig,
    31. height: 400,
    32. width: '100%'
    33. });
    34. $('#demo1').bind('click', function() {
    35. zingchart.exec('demo-chart', 'resize', {
    36. 'width': 200,
    37. 'height': 400
    38. });
    39. });
    40. $('#demo2').bind('click', function() {
    41. zingchart.exec('demo-chart', 'resize', {
    42. 'width': "50%",
    43. 'height': "75%"
    44. });
    45. });
    46. $('#resett').bind('click', function() {
    47. zingchart.exec('demo-chart', 'resize', {
    48. 'width': '100%',
    49. 'height': '100%'
    50. });
    51. });
    52. </script>
    53. </body>
    54.  
    55. </html>
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7. <script src="http://www.zingchart.com/scripts/zcDocs.js"></script>
    8. <link href='http://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='resett'>Reset</button>
    16. <button class='btn btn-info' id='demo1'>Demo 1</button>
    17. <button class='btn btn-info' id='demo2'>Demo 2</button>
    18. <pre id='output'></pre>
    19. </body>
    20.  
    21. </html>
    1.  
    1. var myConfig = {
    2. 'type': 'line',
    3. 'series': [{
    4. 'values': [11, 26, 7, 44, 19]
    5. }]
    6. };
    7. zingchart.render({
    8. id: 'demo-chart',
    9. data: myConfig,
    10. height: 400,
    11. width: '100%'
    12. });
    13. $('#demo1').bind('click', function() {
    14. zingchart.exec('demo-chart', 'resize', {
    15. 'width': 200,
    16. 'height': 400
    17. });
    18. });
    19. $('#demo2').bind('click', function() {
    20. zingchart.exec('demo-chart', 'resize', {
    21. 'width': "50%",
    22. 'height': "75%"
    23. });
    24. });
    25. $('#resett').bind('click', function() {
    26. zingchart.exec('demo-chart', 'resize', {
    27. 'width': '100%',
    28. 'height': '100%'
    29. });
    30. });