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