• 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.  
    10. <script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
    11. <style></style>
    12. </head>
    13.  
    14. <body>
    15. <div id='demo-chart'></div>
    16.  
    17. <pre id='output'></pre>
    18. <script>
    19. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    20. var myConfig = {
    21. 'type': 'scatter',
    22. 'title': {
    23. text: 'Double Click a Node'
    24. },
    25. 'legend': {},
    26. 'series': [{
    27. 'values': [11, 26, 7, 44, 11]
    28. },
    29. {
    30. 'values': [42, 13, 21, 15, 33]
    31. }
    32. ]
    33. };
    34.  
    35. zingchart.bind('demo-chart', 'node_doubleclick', function(e) {
    36. zcdocs.demos.dump('node_doubleclick', e);
    37. });
    38.  
    39. zingchart.render({
    40. id: 'demo-chart',
    41. data: myConfig,
    42. height: 400,
    43. width: '100%'
    44. });
    45. </script>
    46. </body>
    47.  
    48. </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.  
    10. <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    11. </head>
    12.  
    13. <body>
    14. <div id='demo-chart'></div>
    15.  
    16. <pre id='output'></pre>
    17. </body>
    18.  
    19. </html>
    1.  
    1. var myConfig = {
    2. 'type': 'scatter',
    3. 'title': {
    4. text: 'Double Click a Node'
    5. },
    6. 'legend': {},
    7. 'series': [{
    8. 'values': [11, 26, 7, 44, 11]
    9. },
    10. {
    11. 'values': [42, 13, 21, 15, 33]
    12. }
    13. ]
    14. };
    15.  
    16. zingchart.bind('demo-chart', 'node_doubleclick', function(e) {
    17. zcdocs.demos.dump('node_doubleclick', e);
    18. });
    19.  
    20. zingchart.render({
    21. id: 'demo-chart',
    22. data: myConfig,
    23. height: 400,
    24. width: '100%'
    25. });