• 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. <pre id='output'></pre>
    17. <script>
    18. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    19. var myConfig = {
    20. 'type': 'bar',
    21. 'legend': {},
    22. 'series': [{
    23. 'values': [11, 26, 7, 44, 11]
    24. },
    25. {
    26. 'values': [42, 13, 21, 15, 33]
    27. }
    28. ]
    29. };
    30.  
    31. zingchart.bind('demo-chart', 'legend_mouseover', function(e) {
    32. zcdocs.demos.dump('legend_mouseover', e);
    33. });
    34.  
    35. zingchart.bind('demo-chart', 'legend_mouseout', function(e) {
    36. zcdocs.demos.dump('legend_mouseout', 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. <pre id='output'></pre>
    16. </body>
    17.  
    18. </html>
    1.  
    1. var myConfig = {
    2. 'type': 'bar',
    3. 'legend': {},
    4. 'series': [{
    5. 'values': [11, 26, 7, 44, 11]
    6. },
    7. {
    8. 'values': [42, 13, 21, 15, 33]
    9. }
    10. ]
    11. };
    12.  
    13. zingchart.bind('demo-chart', 'legend_mouseover', function(e) {
    14. zcdocs.demos.dump('legend_mouseover', e);
    15. });
    16.  
    17. zingchart.bind('demo-chart', 'legend_mouseout', function(e) {
    18. zcdocs.demos.dump('legend_mouseout', e);
    19. });
    20.  
    21. zingchart.render({
    22. id: 'demo-chart',
    23. data: myConfig,
    24. height: 400,
    25. width: '100%'
    26. });