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