• 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. mediaRules: [{
    32. maxWidth: 400,
    33. lineColor: 'blue'
    34. }]
    35. }
    36. },
    37. plot: {
    38. aspect: 'spline'
    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: '#673AB7',
    46. marker: {
    47. backgroundColor: '#673AB7'
    48. }
    49. },
    50. {
    51. values: [
    52. 51.9, 8.1, 73.6, 37.4, 36.1, 57.4, 96.1, 37.9, 69.4, 18.2,
    53. 66.3, 26.4, 72.5, 29.3, 61.5, 20.3, 71.5, 37.2, 49.9, 7.3
    54. ],
    55. lineColor: '#03A9F4',
    56. marker: {
    57. backgroundColor: '#03A9F4'
    58. }
    59. }
    60. ]
    61. };
    62.  
    63. zingchart.render({
    64. id: 'myChart',
    65. data: myConfig,
    66. height: 400,
    67. width: '100%'
    68. });
    69. </script>
    70. </body>
    71.  
    72. </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. mediaRules: [{
    17. maxWidth: 400,
    18. lineColor: 'blue'
    19. }]
    20. }
    21. },
    22. plot: {
    23. aspect: 'spline'
    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: '#673AB7',
    31. marker: {
    32. backgroundColor: '#673AB7'
    33. }
    34. },
    35. {
    36. values: [
    37. 51.9, 8.1, 73.6, 37.4, 36.1, 57.4, 96.1, 37.9, 69.4, 18.2,
    38. 66.3, 26.4, 72.5, 29.3, 61.5, 20.3, 71.5, 37.2, 49.9, 7.3
    39. ],
    40. lineColor: '#03A9F4',
    41. marker: {
    42. backgroundColor: '#03A9F4'
    43. }
    44. }
    45. ]
    46. };
    47.  
    48. zingchart.render({
    49. id: 'myChart',
    50. data: myConfig,
    51. height: 400,
    52. width: '100%'
    53. });