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