• 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. <pre id='output'></pre>
    17. <script>
    18. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    19. var myConfig = {
    20. 'type': 'bar',
    21. 'legend': {},
    22. 'plot': {
    23. 'animation': {
    24. 'speed': 3000,
    25. 'effect': 3,
    26. 'method': 2
    27. }
    28. },
    29. 'series': [{
    30. 'values': [11, 26, 7, 44, 11]
    31. },
    32. {
    33. 'values': [42, 13, 21, 15, 33]
    34. }
    35. ]
    36. };
    37.  
    38.  
    39. zingchart.animation_step = function(p) {
    40. zcdocs.demos.dump('animation_step', p);
    41. }
    42.  
    43. zingchart.render({
    44. id: 'demo-chart',
    45. data: myConfig,
    46. height: 400,
    47. width: '100%'
    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.  
    10. <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    11. </head>
    12.  
    13. <body>
    14. <div id='demo-chart'></div>
    15. <pre id='output'></pre>
    16. </body>
    17.  
    18. </html>
    1.  
    1. var myConfig = {
    2. 'type': 'bar',
    3. 'legend': {},
    4. 'plot': {
    5. 'animation': {
    6. 'speed': 3000,
    7. 'effect': 3,
    8. 'method': 2
    9. }
    10. },
    11. 'series': [{
    12. 'values': [11, 26, 7, 44, 11]
    13. },
    14. {
    15. 'values': [42, 13, 21, 15, 33]
    16. }
    17. ]
    18. };
    19.  
    20.  
    21. zingchart.animation_step = function(p) {
    22. zcdocs.demos.dump('animation_step', p);
    23. }
    24.  
    25. zingchart.render({
    26. id: 'demo-chart',
    27. data: myConfig,
    28. height: 400,
    29. width: '100%'
    30. });