• 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. scaleX: {
    19. guide: {
    20. lineColor: 'gray',
    21. lineStyle: 'solid',
    22. visible: true
    23. },
    24. minorTicks: 4,
    25. minorGuide: {
    26. alpha: 1,
    27. lineColor: 'red',
    28. lineStyle: 'solid',
    29. lineWidth: 1,
    30. visible: true
    31. }
    32. },
    33. scaleY: {
    34. guide: {
    35. visible: false
    36. }
    37. },
    38. plot: {
    39. aspect: 'spline'
    40. },
    41. series: [{
    42. values: [
    43. 38.2, 96.3, 53.6, 27.4, 14.1, 81.4, 31.1, 70.9, 54.4, 5.2,
    44. 36.3, 80.4, 50.5, 35.3, 30.5, 64.3, 10.5, 27.2, 83.9, 91.3
    45. ],
    46. lineColor: '#3F51B5',
    47. backgroundColor: '#3F51B5',
    48. marker: {
    49. backgroundColor: '#3F51B5'
    50. }
    51. }]
    52. };
    53.  
    54. zingchart.render({
    55. id: 'myChart',
    56. data: myConfig,
    57. height: 400,
    58. width: '100%'
    59. });
    60. </script>
    61. </body>
    62.  
    63. </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. scaleX: {
    4. guide: {
    5. lineColor: 'gray',
    6. lineStyle: 'solid',
    7. visible: true
    8. },
    9. minorTicks: 4,
    10. minorGuide: {
    11. alpha: 1,
    12. lineColor: 'red',
    13. lineStyle: 'solid',
    14. lineWidth: 1,
    15. visible: true
    16. }
    17. },
    18. scaleY: {
    19. guide: {
    20. visible: false
    21. }
    22. },
    23. plot: {
    24. aspect: 'spline'
    25. },
    26. series: [{
    27. values: [
    28. 38.2, 96.3, 53.6, 27.4, 14.1, 81.4, 31.1, 70.9, 54.4, 5.2,
    29. 36.3, 80.4, 50.5, 35.3, 30.5, 64.3, 10.5, 27.2, 83.9, 91.3
    30. ],
    31. lineColor: '#3F51B5',
    32. backgroundColor: '#3F51B5',
    33. marker: {
    34. backgroundColor: '#3F51B5'
    35. }
    36. }]
    37. };
    38.  
    39. zingchart.render({
    40. id: 'myChart',
    41. data: myConfig,
    42. height: 400,
    43. width: '100%'
    44. });