• 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>
    12. html,
    13. body {
    14. height: 100%;
    15. width: 100%;
    16. margin: 0;
    17. padding: 0;
    18. }
    19.  
    20. #myChart {
    21. height: 100%;
    22. width: 100%;
    23. min-height: 150px;
    24. }
    25.  
    26. .zc-ref {
    27. display: none;
    28. }
    29. </style>
    30. </head>
    31.  
    32. <body>
    33. <div id='demo-chart'></div>
    34.  
    35. <pre id='output'></pre>
    36. <script>
    37. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    38. var myConfig = {
    39. 'type': 'bar',
    40. 'title': {
    41. text: 'Click the label'
    42. },
    43. 'labels': [{
    44. 'x': 200,
    45. 'y': 50,
    46. 'background-color': '#f90',
    47. 'padding': 5,
    48. 'border-width': 1,
    49. 'border-color': '#999',
    50. 'text': 'Mouse down label'
    51. }],
    52. 'legend': {},
    53. 'series': [{
    54. 'values': [11, 26, 7, 44, 11]
    55. }, ]
    56. };
    57.  
    58.  
    59. zingchart.bind('demo-chart', 'label_mouseup', function(e) {
    60. zcdocs.demos.dump('label_mouseup', e);
    61. });
    62.  
    63. zingchart.render({
    64. id: 'demo-chart',
    65. data: myConfig,
    66. height: 400,
    67. width: '100%'
    68. });
    69. </script>
    70. </body>
    71.  
    72. </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. html,
    2. body {
    3. height: 100%;
    4. width: 100%;
    5. margin: 0;
    6. padding: 0;
    7. }
    8.  
    9. #myChart {
    10. height: 100%;
    11. width: 100%;
    12. min-height: 150px;
    13. }
    14.  
    15. .zc-ref {
    16. display: none;
    17. }
    1. var myConfig = {
    2. 'type': 'bar',
    3. 'title': {
    4. text: 'Click 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': 'Mouse down label'
    14. }],
    15. 'legend': {},
    16. 'series': [{
    17. 'values': [11, 26, 7, 44, 11]
    18. }, ]
    19. };
    20.  
    21.  
    22. zingchart.bind('demo-chart', 'label_mouseup', function(e) {
    23. zcdocs.demos.dump('label_mouseup', e);
    24. });
    25.  
    26. zingchart.render({
    27. id: 'demo-chart',
    28. data: myConfig,
    29. height: 400,
    30. width: '100%'
    31. });