• 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.  
    17. <pre id='output'></pre>
    18. <script>
    19. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    20. var myConfig = {
    21. 'type': 'line',
    22. 'scale-x': {
    23. 'zooming': true
    24. },
    25. 'scale-y': {
    26. 'zooming': true
    27. },
    28. 'scroll-x': {},
    29. 'scroll-y': {},
    30. 'preview': {
    31. adjustLayout: true
    32. },
    33. 'plotarea': {
    34. adjustLayout: true
    35. },
    36. 'series': [{
    37. 'values': [11, 26, 7, 44, 19, 42, 13, 21, 15, 33]
    38. }]
    39. };
    40.  
    41. zingchart.bind('demo-chart', 'beforezoom', function(e) {
    42. zcdocs.demos.dump('beforezoom', e);
    43. });
    44. zingchart.bind('demo-chart', 'zoom', function(e) {
    45. zcdocs.demos.dump('zoom', e);
    46. });
    47.  
    48.  
    49. zingchart.render({
    50. id: 'demo-chart',
    51. data: myConfig,
    52. height: 450,
    53. width: '100%'
    54. });
    55. </script>
    56. </body>
    57.  
    58. </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.  
    16. <pre id='output'></pre>
    17. </body>
    18.  
    19. </html>
    1.  
    1. var myConfig = {
    2. 'type': 'line',
    3. 'scale-x': {
    4. 'zooming': true
    5. },
    6. 'scale-y': {
    7. 'zooming': true
    8. },
    9. 'scroll-x': {},
    10. 'scroll-y': {},
    11. 'preview': {
    12. adjustLayout: true
    13. },
    14. 'plotarea': {
    15. adjustLayout: true
    16. },
    17. 'series': [{
    18. 'values': [11, 26, 7, 44, 19, 42, 13, 21, 15, 33]
    19. }]
    20. };
    21.  
    22. zingchart.bind('demo-chart', 'beforezoom', function(e) {
    23. zcdocs.demos.dump('beforezoom', e);
    24. });
    25. zingchart.bind('demo-chart', 'zoom', function(e) {
    26. zcdocs.demos.dump('zoom', e);
    27. });
    28.  
    29.  
    30. zingchart.render({
    31. id: 'demo-chart',
    32. data: myConfig,
    33. height: 450,
    34. width: '100%'
    35. });