• 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"];
    16. var myConfig = {
    17. type: "bar",
    18. preview: { //preview box below chart. Can be used from zooming and scrolling
    19. live: true
    20. },
    21. scaleX: { //zooming is not required but almost always used with preview
    22. zooming: true
    23. },
    24. series: [{
    25. values: [35, 42, 67, 89, 25, 34, 67, 85]
    26. },
    27. {
    28. values: [28, 30, 15, 25, 31, 40, 34, 40]
    29. },
    30. {
    31. values: [25, 40, 48, 35, 30, 27, 45, 52]
    32. }
    33. ]
    34. };
    35.  
    36. zingchart.render({
    37. id: 'myChart',
    38. data: myConfig,
    39. height: 400,
    40. width: "100%"
    41. });
    42. </script>
    43. </body>
    44.  
    45. </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. var myConfig = {
    2. type: "bar",
    3. preview: { //preview box below chart. Can be used from zooming and scrolling
    4. live: true
    5. },
    6. scaleX: { //zooming is not required but almost always used with preview
    7. zooming: true
    8. },
    9. series: [{
    10. values: [35, 42, 67, 89, 25, 34, 67, 85]
    11. },
    12. {
    13. values: [28, 30, 15, 25, 31, 40, 34, 40]
    14. },
    15. {
    16. values: [25, 40, 48, 35, 30, 27, 45, 52]
    17. }
    18. ]
    19. };
    20.  
    21. zingchart.render({
    22. id: 'myChart',
    23. data: myConfig,
    24. height: 400,
    25. width: "100%"
    26. });