• 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": "area",
    18. "scale-x": {
    19. "labels": ["Day 1", "Day 2", "Day 3", "Day 4", "Day 5", "Day 6", "Day 7"]
    20. },
    21. "scale-y": {
    22. "values": "0:1000000:200000",
    23. "exponent": true,
    24. "exponent-decimals": 1,
    25. },
    26. "plot": {
    27. "aspect": "spline"
    28. },
    29. "plotarea": {
    30. "margin-left": "dynamic"
    31. },
    32. "series": [{
    33. "values": [31342, 596061, 76790, 151630, 75319, 771421, 989312]
    34. }]
    35. };
    36.  
    37. zingchart.render({
    38. id: 'myChart',
    39. data: myConfig,
    40. height: 400,
    41. width: "100%"
    42. });
    43. </script>
    44. </body>
    45.  
    46. </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": "area",
    3. "scale-x": {
    4. "labels": ["Day 1", "Day 2", "Day 3", "Day 4", "Day 5", "Day 6", "Day 7"]
    5. },
    6. "scale-y": {
    7. "values": "0:1000000:200000",
    8. "exponent": true,
    9. "exponent-decimals": 1,
    10. },
    11. "plot": {
    12. "aspect": "spline"
    13. },
    14. "plotarea": {
    15. "margin-left": "dynamic"
    16. },
    17. "series": [{
    18. "values": [31342, 596061, 76790, 151630, 75319, 771421, 989312]
    19. }]
    20. };
    21.  
    22. zingchart.render({
    23. id: 'myChart',
    24. data: myConfig,
    25. height: 400,
    26. width: "100%"
    27. });