• 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': 'bar',
    22. 'title': {
    23. text: 'Mouse down on 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', 'plot_mousedown', function(e) {
    36. zcdocs.demos.dump('plot_mousedown', e);
    37. });
    38. zingchart.bind('demo-chart', 'plot_mouseup', function(e) {
    39. zcdocs.demos.dump('plot_mouseup', e);
    40. });
    41.  
    42. zingchart.render({
    43. id: 'demo-chart',
    44. data: myConfig,
    45. height: 400,
    46. width: '100%'
    47. });
    48. </script>
    49. </body>
    50.  
    51. </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': 'bar',
    3. 'title': {
    4. text: 'Mouse down on 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', 'plot_mousedown', function(e) {
    17. zcdocs.demos.dump('plot_mousedown', e);
    18. });
    19. zingchart.bind('demo-chart', 'plot_mouseup', function(e) {
    20. zcdocs.demos.dump('plot_mouseup', e);
    21. });
    22.  
    23. zingchart.render({
    24. id: 'demo-chart',
    25. data: myConfig,
    26. height: 400,
    27. width: '100%'
    28. });