• 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: 'line',
    18. scaleX: {
    19. guide: {
    20. visible: false
    21. }
    22. },
    23. scaleY: {
    24. guide: {
    25. backgroundColor: '#ffe6e6 #ffcccc',
    26. lineColor: 'red',
    27. lineStyle: 'solid',
    28. lineWidth: 1,
    29. visible: true
    30. }
    31. },
    32. plot: {
    33. aspect: 'spline'
    34. },
    35. series: [{
    36. values: [
    37. 38.2, 96.3, 53.6, 27.4, 14.1, 81.4, 31.1, 70.9, 54.4, 5.2,
    38. 36.3, 80.4, 50.5, 35.3, 30.5, 64.3, 10.5, 27.2, 83.9, 91.3
    39. ],
    40. lineColor: '#673AB7',
    41. marker: {
    42. backgroundColor: '#673AB7'
    43. }
    44. },
    45. {
    46. values: [
    47. 51.9, 8.1, 73.6, 37.4, 36.1, 57.4, 96.1, 37.9, 69.4, 18.2,
    48. 66.3, 26.4, 72.5, 29.3, 61.5, 20.3, 71.5, 37.2, 49.9, 7.3
    49. ],
    50. lineColor: '#03A9F4',
    51. marker: {
    52. backgroundColor: '#03A9F4'
    53. }
    54. }
    55. ]
    56. };
    57.  
    58. zingchart.render({
    59. id: 'myChart',
    60. data: myConfig,
    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. var myConfig = {
    2. type: 'line',
    3. scaleX: {
    4. guide: {
    5. visible: false
    6. }
    7. },
    8. scaleY: {
    9. guide: {
    10. backgroundColor: '#ffe6e6 #ffcccc',
    11. lineColor: 'red',
    12. lineStyle: 'solid',
    13. lineWidth: 1,
    14. visible: true
    15. }
    16. },
    17. plot: {
    18. aspect: 'spline'
    19. },
    20. series: [{
    21. values: [
    22. 38.2, 96.3, 53.6, 27.4, 14.1, 81.4, 31.1, 70.9, 54.4, 5.2,
    23. 36.3, 80.4, 50.5, 35.3, 30.5, 64.3, 10.5, 27.2, 83.9, 91.3
    24. ],
    25. lineColor: '#673AB7',
    26. marker: {
    27. backgroundColor: '#673AB7'
    28. }
    29. },
    30. {
    31. values: [
    32. 51.9, 8.1, 73.6, 37.4, 36.1, 57.4, 96.1, 37.9, 69.4, 18.2,
    33. 66.3, 26.4, 72.5, 29.3, 61.5, 20.3, 71.5, 37.2, 49.9, 7.3
    34. ],
    35. lineColor: '#03A9F4',
    36. marker: {
    37. backgroundColor: '#03A9F4'
    38. }
    39. }
    40. ]
    41. };
    42.  
    43. zingchart.render({
    44. id: 'myChart',
    45. data: myConfig,
    46. height: 400,
    47. width: '100%'
    48. });