• 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. rules: [{
    31. rule: '%v > 40',
    32. lineColor: 'blue'
    33. }]
    34. }
    35. },
    36. plot: {
    37. aspect: 'spline'
    38. },
    39. series: [{
    40. values: [
    41. 38.2, 96.3, 53.6, 27.4, 14.1, 81.4, 31.1, 70.9, 54.4, 5.2,
    42. 36.3, 80.4, 50.5, 35.3, 30.5, 64.3, 10.5, 27.2, 83.9, 91.3
    43. ],
    44. lineColor: '#673AB7',
    45. marker: {
    46. backgroundColor: '#673AB7'
    47. }
    48. },
    49. {
    50. values: [
    51. 51.9, 8.1, 73.6, 37.4, 36.1, 57.4, 96.1, 37.9, 69.4, 18.2,
    52. 66.3, 26.4, 72.5, 29.3, 61.5, 20.3, 71.5, 37.2, 49.9, 7.3
    53. ],
    54. lineColor: '#03A9F4',
    55. marker: {
    56. backgroundColor: '#03A9F4'
    57. }
    58. }
    59. ]
    60. };
    61.  
    62. zingchart.render({
    63. id: 'myChart',
    64. data: myConfig,
    65. height: 400,
    66. width: '100%'
    67. });
    68. </script>
    69. </body>
    70.  
    71. </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. rules: [{
    16. rule: '%v > 40',
    17. lineColor: 'blue'
    18. }]
    19. }
    20. },
    21. plot: {
    22. aspect: 'spline'
    23. },
    24. series: [{
    25. values: [
    26. 38.2, 96.3, 53.6, 27.4, 14.1, 81.4, 31.1, 70.9, 54.4, 5.2,
    27. 36.3, 80.4, 50.5, 35.3, 30.5, 64.3, 10.5, 27.2, 83.9, 91.3
    28. ],
    29. lineColor: '#673AB7',
    30. marker: {
    31. backgroundColor: '#673AB7'
    32. }
    33. },
    34. {
    35. values: [
    36. 51.9, 8.1, 73.6, 37.4, 36.1, 57.4, 96.1, 37.9, 69.4, 18.2,
    37. 66.3, 26.4, 72.5, 29.3, 61.5, 20.3, 71.5, 37.2, 49.9, 7.3
    38. ],
    39. lineColor: '#03A9F4',
    40. marker: {
    41. backgroundColor: '#03A9F4'
    42. }
    43. }
    44. ]
    45. };
    46.  
    47. zingchart.render({
    48. id: 'myChart',
    49. data: myConfig,
    50. height: 400,
    51. width: '100%'
    52. });