• 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. "scale-y": {
    19. item: {
    20. fontColor: "#7CA82B"
    21. },
    22. markers: [{
    23. type: "line",
    24. range: [72],
    25. lineColor: "#7CA82B",
    26. lineWidth: 2
    27. },
    28. {
    29. type: "area",
    30. range: [3, 15],
    31. backgroundColor: "#7CA82B",
    32. alpha: 0.5
    33. }
    34. ]
    35. },
    36. "scale-y-2": {
    37. item: {
    38. fontColor: "#EF8535"
    39. },
    40. markers: [{
    41. type: "line",
    42. range: [900],
    43. lineColor: "#EF8535",
    44. lineWidth: 2
    45. },
    46. {
    47. type: "area",
    48. range: [350, 450],
    49. backgroundColor: "#EF8535",
    50. alpha: 0.5
    51. }
    52. ]
    53. },
    54. series: [{
    55. values: [48, 45, 95, 25, 65, 73, 71, 74, 29, 77],
    56. scales: "scale-x,scale-y"
    57. },
    58. {
    59. values: [700, 677, 560, 425, 150, 804, 590, 209, 917, 260],
    60. scales: "scale-x,scale-y-2"
    61. }
    62. ]
    63. };
    64.  
    65. zingchart.render({
    66. id: 'myChart',
    67. data: myConfig,
    68. height: 400,
    69. width: '100%'
    70. });
    71. </script>
    72. </body>
    73.  
    74. </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. "scale-y": {
    4. item: {
    5. fontColor: "#7CA82B"
    6. },
    7. markers: [{
    8. type: "line",
    9. range: [72],
    10. lineColor: "#7CA82B",
    11. lineWidth: 2
    12. },
    13. {
    14. type: "area",
    15. range: [3, 15],
    16. backgroundColor: "#7CA82B",
    17. alpha: 0.5
    18. }
    19. ]
    20. },
    21. "scale-y-2": {
    22. item: {
    23. fontColor: "#EF8535"
    24. },
    25. markers: [{
    26. type: "line",
    27. range: [900],
    28. lineColor: "#EF8535",
    29. lineWidth: 2
    30. },
    31. {
    32. type: "area",
    33. range: [350, 450],
    34. backgroundColor: "#EF8535",
    35. alpha: 0.5
    36. }
    37. ]
    38. },
    39. series: [{
    40. values: [48, 45, 95, 25, 65, 73, 71, 74, 29, 77],
    41. scales: "scale-x,scale-y"
    42. },
    43. {
    44. values: [700, 677, 560, 425, 150, 804, 590, 209, 917, 260],
    45. scales: "scale-x,scale-y-2"
    46. }
    47. ]
    48. };
    49.  
    50. zingchart.render({
    51. id: 'myChart',
    52. data: myConfig,
    53. height: 400,
    54. width: '100%'
    55. });