• Edit
  • Download
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7.  
    8. <script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
    9. <style></style>
    10. </head>
    11.  
    12. <body>
    13. <div id='myChart'></div>
    14. <script>
    15. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    16. var myConfig = {
    17. "type": "bar",
    18. "title": {
    19. "text": "Berry Picking Contest"
    20. },
    21. "plot": {
    22. "bars-space-left": "25%",
    23. "bars-space-right": "25%",
    24. "tooltip": { //HTML Tooltips
    25. "text": "<table border='1'><tr><td colspan=2><strong>%kl</strong></td></tr><tr><td style='width:100px'>%data-photo</td><td style='width:100px'><em>%kl</em> picked %v %t in this year's berry picking contest.</td></tr></table>",
    26. "html-mode": true
    27. }
    28. },
    29. "scale-x": {
    30. "labels": ["Alice", "Brett", "Chris", "Donna", "Emily", "Frank"]
    31. },
    32. "scale-y": {
    33. "values": "0:150:50"
    34. },
    35. "series": [{
    36. "values": [64, 50, 34, 30, 90, 99],
    37. "background-color": "#666699",
    38. "text": "blackberries",
    39. "data-photo": "<img src='//www.zingchart.com/images/blackberry.jpg' height='80' width='100'>"
    40. },
    41. {
    42. "values": [70, 77, 134, 114, 130, 65],
    43. "background-color": "#66ccff",
    44. "text": "blueberries",
    45. "data-photo": "<img src='//www.zingchart.com/images/blueberry.jpg' height='80' width='100'>"
    46. },
    47. {
    48. "values": [30, 34, 15, 16, 59, 64],
    49. "background-color": "#ff9999",
    50. "text": "cloudberries",
    51. "data-photo": "<img src='//www.zingchart.com/images/cloudberry.jpg' height='80' width='100'>"
    52. }
    53. ]
    54. };
    55.  
    56. zingchart.render({
    57. id: 'myChart',
    58. data: myConfig,
    59. height: 400,
    60. width: 600
    61. });
    62. </script>
    63. </body>
    64.  
    65. </html>
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7.  
    8. <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    9. </head>
    10.  
    11. <body>
    12. <div id='myChart'></div>
    13. </body>
    14.  
    15. </html>
    1.  
    1. var myConfig = {
    2. "type": "bar",
    3. "title": {
    4. "text": "Berry Picking Contest"
    5. },
    6. "plot": {
    7. "bars-space-left": "25%",
    8. "bars-space-right": "25%",
    9. "tooltip": { //HTML Tooltips
    10. "text": "<table border='1'><tr><td colspan=2><strong>%kl</strong></td></tr><tr><td style='width:100px'>%data-photo</td><td style='width:100px'><em>%kl</em> picked %v %t in this year's berry picking contest.</td></tr></table>",
    11. "html-mode": true
    12. }
    13. },
    14. "scale-x": {
    15. "labels": ["Alice", "Brett", "Chris", "Donna", "Emily", "Frank"]
    16. },
    17. "scale-y": {
    18. "values": "0:150:50"
    19. },
    20. "series": [{
    21. "values": [64, 50, 34, 30, 90, 99],
    22. "background-color": "#666699",
    23. "text": "blackberries",
    24. "data-photo": "<img src='//www.zingchart.com/images/blackberry.jpg' height='80' width='100'>"
    25. },
    26. {
    27. "values": [70, 77, 134, 114, 130, 65],
    28. "background-color": "#66ccff",
    29. "text": "blueberries",
    30. "data-photo": "<img src='//www.zingchart.com/images/blueberry.jpg' height='80' width='100'>"
    31. },
    32. {
    33. "values": [30, 34, 15, 16, 59, 64],
    34. "background-color": "#ff9999",
    35. "text": "cloudberries",
    36. "data-photo": "<img src='//www.zingchart.com/images/cloudberry.jpg' height='80' width='100'>"
    37. }
    38. ]
    39. };
    40.  
    41. zingchart.render({
    42. id: 'myChart',
    43. data: myConfig,
    44. height: 400,
    45. width: 600
    46. });