• 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="https://cdn.zingchart.com/zingchart.min.js"></script>
    8. <script nonce="undefined" src="https://cdn.zingchart.com/modules/zingchart-dragging.min.js"></script>
    9. <style></style>
    10. </head>
    11.  
    12. <body>
    13. <div id='myChart'></div>
    14. <script>
    15. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    16. let chartConfig = {
    17. type: 'line',
    18. plot: {
    19. marker: {
    20. size: 7,
    21. borderColor: 'black',
    22. borderWidth: 2
    23. }
    24. },
    25. series: [{
    26. values: [35, 42, 67, 89, 25, 34, 67, 85],
    27. dataDragging: true,
    28. },
    29. {
    30. values: [22, 34, 55, 71, 42, 39, 50, 70]
    31. }
    32. ]
    33. };
    34.  
    35. zingchart.render({
    36. id: 'myChart',
    37. data: chartConfig,
    38. height: 400,
    39. width: '100%',
    40. modules: "dragging"
    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. <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    8. <script src="https://cdn.zingchart.com/modules/zingchart-dragging.min.js"></script>
    9. </head>
    10.  
    11. <body>
    12. <div id='myChart'></div>
    13. </body>
    14.  
    15. </html>
    1.  
    1. let chartConfig = {
    2. type: 'line',
    3. plot: {
    4. marker: {
    5. size: 7,
    6. borderColor: 'black',
    7. borderWidth: 2
    8. }
    9. },
    10. series: [{
    11. values: [35, 42, 67, 89, 25, 34, 67, 85],
    12. dataDragging: true,
    13. },
    14. {
    15. values: [22, 34, 55, 71, 42, 39, 50, 70]
    16. }
    17. ]
    18. };
    19.  
    20. zingchart.render({
    21. id: 'myChart',
    22. data: chartConfig,
    23. height: 400,
    24. width: '100%',
    25. modules: "dragging"
    26. });