• 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'>Run 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': [11, 26, 7, 44, 11]
    25. },
    26. {
    27. 'values': [42, 13, 21, 15, 33]
    28. }
    29. ]
    30. };
    31. zingchart.render({
    32. id: 'demo-chart',
    33. data: myConfig,
    34. height: 400,
    35. width: '100%'
    36. });
    37. zingchart.node_add = function(p) {
    38. zcdocs.demos.dump('node_add', p);
    39. }
    40. $('#demo1').bind('click', function() {
    41. zingchart.exec('demo-chart', 'addnode', {
    42. 'plotindex': 1,
    43. 'value': zcdocs.utils.rvalue(0, 50)
    44. });
    45. });
    46. </script>
    47. </body>
    48.  
    49. </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'>Run Demo 1</button>
    17. <pre id='output'></pre>
    18. </body>
    19.  
    20. </html>
    1.  
    1. var myConfig = {
    2. 'type': 'line',
    3. 'series': [{
    4. 'values': [11, 26, 7, 44, 11]
    5. },
    6. {
    7. 'values': [42, 13, 21, 15, 33]
    8. }
    9. ]
    10. };
    11. zingchart.render({
    12. id: 'demo-chart',
    13. data: myConfig,
    14. height: 400,
    15. width: '100%'
    16. });
    17. zingchart.node_add = function(p) {
    18. zcdocs.demos.dump('node_add', p);
    19. }
    20. $('#demo1').bind('click', function() {
    21. zingchart.exec('demo-chart', 'addnode', {
    22. 'plotindex': 1,
    23. 'value': zcdocs.utils.rvalue(0, 50)
    24. });
    25. });