• 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': 'bar',
    22. 'legend': {},
    23. 'plot': {
    24. 'animation': {
    25. 'speed': 3000,
    26. 'effect': 3,
    27. 'method': 1
    28. }
    29. },
    30. 'series': [{
    31. 'values': [11, 26, 7, 44, 11]
    32. },
    33. {
    34. 'values': [42, 13, 21, 15, 33]
    35. }
    36. ]
    37. };
    38. zingchart.render({
    39. id: 'demo-chart',
    40. data: myConfig,
    41. height: 400,
    42. width: '100%'
    43. });
    44. zingchart.animation_end = function(p) {
    45. zcdocs.demos.dump('animation_end', p);
    46. }
    47. </script>
    48. </body>
    49.  
    50. </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': 'bar',
    3. 'legend': {},
    4. 'plot': {
    5. 'animation': {
    6. 'speed': 3000,
    7. 'effect': 3,
    8. 'method': 1
    9. }
    10. },
    11. 'series': [{
    12. 'values': [11, 26, 7, 44, 11]
    13. },
    14. {
    15. 'values': [42, 13, 21, 15, 33]
    16. }
    17. ]
    18. };
    19. zingchart.render({
    20. id: 'demo-chart',
    21. data: myConfig,
    22. height: 400,
    23. width: '100%'
    24. });
    25. zingchart.animation_end = function(p) {
    26. zcdocs.demos.dump('animation_end', p);
    27. }