• 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. "plot": {
    19. "value-box": {
    20. "text": "$%vK",
    21. "placement": "top-in",
    22. "font-color": "white",
    23. "angle": -90,
    24. "offset-y": 5
    25. }
    26. },
    27. "scale-x": {
    28. "labels": ["Q1", "Q2", "Q3", "Q4"]
    29. },
    30. "scale-y": {
    31. "values": "0:100:25"
    32. },
    33. "series": [{
    34. "values": [30, 59, 33, 81]
    35. },
    36. {
    37. "values": [34, 64, 40, 85]
    38. }
    39. ]
    40. };
    41.  
    42. zingchart.render({
    43. id: 'myChart',
    44. data: myConfig,
    45. height: 400,
    46. width: "100%"
    47. });
    48. </script>
    49. </body>
    50.  
    51. </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. "plot": {
    4. "value-box": {
    5. "text": "$%vK",
    6. "placement": "top-in",
    7. "font-color": "white",
    8. "angle": -90,
    9. "offset-y": 5
    10. }
    11. },
    12. "scale-x": {
    13. "labels": ["Q1", "Q2", "Q3", "Q4"]
    14. },
    15. "scale-y": {
    16. "values": "0:100:25"
    17. },
    18. "series": [{
    19. "values": [30, 59, 33, 81]
    20. },
    21. {
    22. "values": [34, 64, 40, 85]
    23. }
    24. ]
    25. };
    26.  
    27. zingchart.render({
    28. id: 'myChart',
    29. data: myConfig,
    30. height: 400,
    31. width: "100%"
    32. });