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