• 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: true,
    21. items: [{
    22. backgroundColor: 'red'
    23. },
    24. {
    25. backgroundColor: '#ff1a1a'
    26. },
    27. {
    28. backgroundColor: '#ff3333'
    29. },
    30. {
    31. backgroundColor: '#ff4d4d'
    32. },
    33. {
    34. backgroundColor: '#ff6666'
    35. },
    36. {
    37. backgroundColor: '#ff8080'
    38. },
    39. {
    40. backgroundColor: '#ff9999'
    41. },
    42. {
    43. backgroundColor: '#ffb3b3'
    44. },
    45. {
    46. backgroundColor: '#ffcccc'
    47. },
    48. {
    49. backgroundColor: '#ffe6e6'
    50. }
    51. ]
    52. }
    53. },
    54. scaleY: {
    55. guide: {
    56. visible: false
    57. }
    58. },
    59. plot: {
    60. aspect: 'spline'
    61. },
    62. series: [{
    63. values: [38.2, 96.3, 53.6, 27.4, 14.1, 81.4, 31.1, 70.9, 54.4, 5.2, 36.3],
    64. lineColor: '#673AB7',
    65. marker: {
    66. backgroundColor: '#673AB7'
    67. }
    68. },
    69. {
    70. values: [51.9, 8.1, 73.6, 37.4, 36.1, 57.4, 96.1, 37.9, 69.4, 18.2, 66.3],
    71. lineColor: '#03A9F4',
    72. marker: {
    73. backgroundColor: '#03A9F4'
    74. }
    75. }
    76. ]
    77. };
    78.  
    79. zingchart.render({
    80. id: 'myChart',
    81. data: myConfig,
    82. height: 400,
    83. width: '100%'
    84. });
    85. </script>
    86. </body>
    87.  
    88. </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: true,
    6. items: [{
    7. backgroundColor: 'red'
    8. },
    9. {
    10. backgroundColor: '#ff1a1a'
    11. },
    12. {
    13. backgroundColor: '#ff3333'
    14. },
    15. {
    16. backgroundColor: '#ff4d4d'
    17. },
    18. {
    19. backgroundColor: '#ff6666'
    20. },
    21. {
    22. backgroundColor: '#ff8080'
    23. },
    24. {
    25. backgroundColor: '#ff9999'
    26. },
    27. {
    28. backgroundColor: '#ffb3b3'
    29. },
    30. {
    31. backgroundColor: '#ffcccc'
    32. },
    33. {
    34. backgroundColor: '#ffe6e6'
    35. }
    36. ]
    37. }
    38. },
    39. scaleY: {
    40. guide: {
    41. visible: false
    42. }
    43. },
    44. plot: {
    45. aspect: 'spline'
    46. },
    47. series: [{
    48. values: [38.2, 96.3, 53.6, 27.4, 14.1, 81.4, 31.1, 70.9, 54.4, 5.2, 36.3],
    49. lineColor: '#673AB7',
    50. marker: {
    51. backgroundColor: '#673AB7'
    52. }
    53. },
    54. {
    55. values: [51.9, 8.1, 73.6, 37.4, 36.1, 57.4, 96.1, 37.9, 69.4, 18.2, 66.3],
    56. lineColor: '#03A9F4',
    57. marker: {
    58. backgroundColor: '#03A9F4'
    59. }
    60. }
    61. ]
    62. };
    63.  
    64. zingchart.render({
    65. id: 'myChart',
    66. data: myConfig,
    67. height: 400,
    68. width: '100%'
    69. });