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