• 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. let chartConfig = {
    17. type: 'area',
    18. scaleX: {},
    19. scaleY: {
    20. item: {
    21. backgroundColor: '#ffe6e6',
    22. borderColor: 'red',
    23. borderRadius: 3,
    24. borderWidth: 1,
    25. fontColor: 'red',
    26. fontFamily: 'Georgia',
    27. padding: '3px 15px'
    28. }
    29. },
    30. plotarea: {
    31. marginLeft: 'dynamic'
    32. },
    33. series: [{
    34. values: [
    35. 38.2, 96.3, 53.6, 27.4, 14.1, 81.4, 31.1, 70.9, 54.4, 5.2,
    36. 36.3, 80.4, 50.5, 35.3, 30.5, 64.3, 10.5, 27.2, 83.9, 91.3
    37. ],
    38. lineColor: '#4CAF50',
    39. backgroundColor: '#4CAF50',
    40. marker: {
    41. backgroundColor: '#4CAF50'
    42. }
    43. },
    44. {
    45. values: [
    46. 51.9, 8.1, 73.6, 37.4, 36.1, 57.4, 96.1, 37.9, 69.4, 18.2,
    47. 66.3, 26.4, 72.5, 29.3, 61.5, 20.3, 71.5, 37.2, 49.9, 7.3
    48. ],
    49. lineColor: '#03A9F4',
    50. backgroundColor: '#03A9F4',
    51. marker: {
    52. backgroundColor: '#03A9F4'
    53. }
    54. }
    55. ]
    56. };
    57.  
    58. zingchart.render({
    59. id: 'myChart',
    60. data: chartConfig,
    61. height: 400,
    62. width: '100%'
    63. });
    64. </script>
    65. </body>
    66.  
    67. </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. let chartConfig = {
    2. type: 'area',
    3. scaleX: {},
    4. scaleY: {
    5. item: {
    6. backgroundColor: '#ffe6e6',
    7. borderColor: 'red',
    8. borderRadius: 3,
    9. borderWidth: 1,
    10. fontColor: 'red',
    11. fontFamily: 'Georgia',
    12. padding: '3px 15px'
    13. }
    14. },
    15. plotarea: {
    16. marginLeft: 'dynamic'
    17. },
    18. series: [{
    19. values: [
    20. 38.2, 96.3, 53.6, 27.4, 14.1, 81.4, 31.1, 70.9, 54.4, 5.2,
    21. 36.3, 80.4, 50.5, 35.3, 30.5, 64.3, 10.5, 27.2, 83.9, 91.3
    22. ],
    23. lineColor: '#4CAF50',
    24. backgroundColor: '#4CAF50',
    25. marker: {
    26. backgroundColor: '#4CAF50'
    27. }
    28. },
    29. {
    30. values: [
    31. 51.9, 8.1, 73.6, 37.4, 36.1, 57.4, 96.1, 37.9, 69.4, 18.2,
    32. 66.3, 26.4, 72.5, 29.3, 61.5, 20.3, 71.5, 37.2, 49.9, 7.3
    33. ],
    34. lineColor: '#03A9F4',
    35. backgroundColor: '#03A9F4',
    36. marker: {
    37. backgroundColor: '#03A9F4'
    38. }
    39. }
    40. ]
    41. };
    42.  
    43. zingchart.render({
    44. id: 'myChart',
    45. data: chartConfig,
    46. height: 400,
    47. width: '100%'
    48. });