• Edit
  • Download
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7.  
    8. <script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
    9. <style></style>
    10. </head>
    11.  
    12. <body>
    13. <div id='myChart'></div>
    14. <script>
    15. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"]; /*When scrolling is enabled for a chart ZingChart does not sample data by default. However, to improve performance during the re-rendering of the chart which occors during scrolling you can set "scroll-step-multiplier":2. This will force the library to sample data but only during the process of scrolling.*/
    16.  
    17. var myConfig = {
    18. type: "bar",
    19. scaleX: {
    20. zooming: true,
    21. zoomTo: [0, 9]
    22. },
    23. scrollX: {
    24.  
    25. },
    26. plot: {
    27. scrollStepMultiplier: 2
    28. },
    29. series: [{
    30. "values": [28, 19, 30, 35, 46, 36, 11, 7, 14, 11, 24, 22, 18, 25, 35, 16, 31, 18]
    31. }]
    32. }
    33.  
    34. zingchart.render({
    35. id: 'myChart',
    36. data: myConfig,
    37. height: 400,
    38. width: '100%'
    39. });
    40. </script>
    41. </body>
    42.  
    43. </html>
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7.  
    8. <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    9. </head>
    10.  
    11. <body>
    12. <div id='myChart'></div>
    13. </body>
    14.  
    15. </html>
    1.  
    1. /*When scrolling is enabled for a chart ZingChart does not sample data by default. However, to improve performance during the re-rendering of the chart which occors during scrolling you can set "scroll-step-multiplier":2. This will force the library to sample data but only during the process of scrolling.*/
    2.  
    3. var myConfig = {
    4. type: "bar",
    5. scaleX: {
    6. zooming: true,
    7. zoomTo: [0, 9]
    8. },
    9. scrollX: {
    10.  
    11. },
    12. plot: {
    13. scrollStepMultiplier: 2
    14. },
    15. series: [{
    16. "values": [28, 19, 30, 35, 46, 36, 11, 7, 14, 11, 24, 22, 18, 25, 35, 16, 31, 18]
    17. }]
    18. }
    19.  
    20. zingchart.render({
    21. id: 'myChart',
    22. data: myConfig,
    23. height: 400,
    24. width: '100%'
    25. });