• 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. <script nonce="undefined" src='//code.jquery.com/jquery-2.1.4.min.js'></script>
    10.  
    11. <script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
    12. <style></style>
    13. </head>
    14.  
    15. <body>
    16. <div id='demo-chart'></div>
    17. <button class='btn btn-info' id='demo1'>Demo 1</button>
    18. <pre id='output'></pre>
    19. <script>
    20. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    21. var myConfig = {
    22. 'type': 'line',
    23. 'series': [{
    24. 'values': [69, 68, 54, 48, 70, 74, 98, 70, 72, 68, 49, 69]
    25. },
    26. {
    27. 'values': [51, 53, 47, 60, 48, 52, 75, 52, 55, 47, 60, 48]
    28. },
    29. {
    30. 'values': [42, 43, 30, 40, 31, 48, 55, 46, 48, 32, 38, 38]
    31. },
    32. {
    33. 'values': [25, 15, 26, 21, 24, 26, 33, 25, 15, 25, 22, 24]
    34. }
    35. ]
    36. };
    37.  
    38. zingchart.render({
    39. id: 'demo-chart',
    40. data: myConfig,
    41. height: 400,
    42. width: '100%'
    43. });
    44.  
    45. demo1.addEventListener('click', function() {
    46. zingchart.exec('demo-chart', 'removenode', {
    47. plotindex: 1,
    48. data: {
    49. plotindex: 1,
    50. nodeindex: 2
    51. }
    52. });
    53. });
    54. </script>
    55. </body>
    56.  
    57. </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. <script src='//code.jquery.com/jquery-2.1.4.min.js'></script>
    10.  
    11. <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    12. </head>
    13.  
    14. <body>
    15. <div id='demo-chart'></div>
    16. <button class='btn btn-info' id='demo1'>Demo 1</button>
    17. <pre id='output'></pre>
    18. </body>
    19.  
    20. </html>
    1.  
    1. var myConfig = {
    2. 'type': 'line',
    3. 'series': [{
    4. 'values': [69, 68, 54, 48, 70, 74, 98, 70, 72, 68, 49, 69]
    5. },
    6. {
    7. 'values': [51, 53, 47, 60, 48, 52, 75, 52, 55, 47, 60, 48]
    8. },
    9. {
    10. 'values': [42, 43, 30, 40, 31, 48, 55, 46, 48, 32, 38, 38]
    11. },
    12. {
    13. 'values': [25, 15, 26, 21, 24, 26, 33, 25, 15, 25, 22, 24]
    14. }
    15. ]
    16. };
    17.  
    18. zingchart.render({
    19. id: 'demo-chart',
    20. data: myConfig,
    21. height: 400,
    22. width: '100%'
    23. });
    24.  
    25. demo1.addEventListener('click', function() {
    26. zingchart.exec('demo-chart', 'removenode', {
    27. plotindex: 1,
    28. data: {
    29. plotindex: 1,
    30. nodeindex: 2
    31. }
    32. });
    33. });