• 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: 'Hover the label'
    24. },
    25. 'labels': [{
    26. 'x': 200,
    27. 'y': 50,
    28. 'background-color': '#f90',
    29. 'padding': 5,
    30. 'border-width': 1,
    31. 'border-color': '#999',
    32. 'text': 'Simple Label'
    33. }],
    34. 'series': [{
    35. 'values': [11, 26, 7, 44, 11]
    36. }]
    37. };
    38.  
    39. zingchart.bind('demo-chart', 'label_mouseout', function(e) {
    40. zcdocs.demos.dump('label_mouseout', e);
    41. });
    42.  
    43. zingchart.render({
    44. id: 'demo-chart',
    45. data: myConfig,
    46. height: 400,
    47. width: '100%'
    48. });
    49. </script>
    50. </body>
    51.  
    52. </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: 'Hover the label'
    5. },
    6. 'labels': [{
    7. 'x': 200,
    8. 'y': 50,
    9. 'background-color': '#f90',
    10. 'padding': 5,
    11. 'border-width': 1,
    12. 'border-color': '#999',
    13. 'text': 'Simple Label'
    14. }],
    15. 'series': [{
    16. 'values': [11, 26, 7, 44, 11]
    17. }]
    18. };
    19.  
    20. zingchart.bind('demo-chart', 'label_mouseout', function(e) {
    21. zcdocs.demos.dump('label_mouseout', e);
    22. });
    23.  
    24. zingchart.render({
    25. id: 'demo-chart',
    26. data: myConfig,
    27. height: 400,
    28. width: '100%'
    29. });