• 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 shape'
    42. },
    43. "shapes": [{
    44. "type": "circle",
    45. "background-color": "red",
    46. "x": 200,
    47. "y": 100,
    48. "size": 100,
    49. "label": {
    50. "text": "Shape Mouse Down",
    51. "color": "white"
    52. }
    53. }],
    54. 'legend': {},
    55. 'series': [{
    56. 'values': [11, 26, 7, 44, 11]
    57. }, ]
    58. };
    59.  
    60. zingchart.bind('demo-chart', 'shape_mousedown', function(e) {
    61. zcdocs.demos.dump('shape_mousedown', e);
    62. });
    63.  
    64. zingchart.render({
    65. id: 'demo-chart',
    66. data: myConfig,
    67. height: 400,
    68. width: '100%'
    69. });
    70. </script>
    71. </body>
    72.  
    73. </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 shape'
    5. },
    6. "shapes": [{
    7. "type": "circle",
    8. "background-color": "red",
    9. "x": 200,
    10. "y": 100,
    11. "size": 100,
    12. "label": {
    13. "text": "Shape Mouse Down",
    14. "color": "white"
    15. }
    16. }],
    17. 'legend': {},
    18. 'series': [{
    19. 'values': [11, 26, 7, 44, 11]
    20. }, ]
    21. };
    22.  
    23. zingchart.bind('demo-chart', 'shape_mousedown', function(e) {
    24. zcdocs.demos.dump('shape_mousedown', e);
    25. });
    26.  
    27. zingchart.render({
    28. id: 'demo-chart',
    29. data: myConfig,
    30. height: 400,
    31. width: '100%'
    32. });