• 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": "%plot-text"
    20. },
    21. "plot": {
    22. "tooltip": {
    23. "text": "%plot-text %plot-description",
    24. }
    25. },
    26. "series": [{
    27. "values": [30, 34, 14, 15],
    28. "text": "Blue",
    29. "description": "is the color of the ocean and the sky."
    30. },
    31. {
    32. "values": [31, 35, 16, 16],
    33. "text": "Red",
    34. "description": "is the color of some apples and birds."
    35. }
    36. ]
    37. };
    38.  
    39. zingchart.render({
    40. id: 'myChart',
    41. data: myConfig,
    42. height: 300,
    43. width: "100%"
    44. });
    45. </script>
    46. </body>
    47.  
    48. </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": "%plot-text"
    5. },
    6. "plot": {
    7. "tooltip": {
    8. "text": "%plot-text %plot-description",
    9. }
    10. },
    11. "series": [{
    12. "values": [30, 34, 14, 15],
    13. "text": "Blue",
    14. "description": "is the color of the ocean and the sky."
    15. },
    16. {
    17. "values": [31, 35, 16, 16],
    18. "text": "Red",
    19. "description": "is the color of some apples and birds."
    20. }
    21. ]
    22. };
    23.  
    24. zingchart.render({
    25. id: 'myChart',
    26. data: myConfig,
    27. height: 300,
    28. width: "100%"
    29. });