• 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. scaleY: {
    19. markers: [{
    20. type: "line",
    21. range: [78],
    22. lineColor: "red",
    23. lineWidth: 2,
    24. label: { //define label within marker
    25. text: "Maximum Acceptable Level",
    26. backgroundColor: "white",
    27. alpha: 0.7,
    28. textAlpha: 1,
    29. offsetX: 360,
    30. offsetY: -5
    31. }
    32. },
    33. {
    34. type: "area",
    35. range: [0, 20],
    36. alpha: 0.7,
    37. label: { //define label within marker
    38. text: "Not Active",
    39. backgroundColor: "#555",
    40. fontColor: "white"
    41. }
    42. }
    43. ]
    44. },
    45. series: [{
    46. values: [23, 93, 34, 72, 96, 33, 32, 27, 38, 49, 75, 74]
    47. }]
    48. };
    49.  
    50. zingchart.render({
    51. id: 'myChart',
    52. data: myConfig,
    53. height: 400,
    54. width: '100%'
    55. });
    56. </script>
    57. </body>
    58.  
    59. </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. scaleY: {
    4. markers: [{
    5. type: "line",
    6. range: [78],
    7. lineColor: "red",
    8. lineWidth: 2,
    9. label: { //define label within marker
    10. text: "Maximum Acceptable Level",
    11. backgroundColor: "white",
    12. alpha: 0.7,
    13. textAlpha: 1,
    14. offsetX: 360,
    15. offsetY: -5
    16. }
    17. },
    18. {
    19. type: "area",
    20. range: [0, 20],
    21. alpha: 0.7,
    22. label: { //define label within marker
    23. text: "Not Active",
    24. backgroundColor: "#555",
    25. fontColor: "white"
    26. }
    27. }
    28. ]
    29. },
    30. series: [{
    31. values: [23, 93, 34, 72, 96, 33, 32, 27, 38, 49, 75, 74]
    32. }]
    33. };
    34.  
    35. zingchart.render({
    36. id: 'myChart',
    37. data: myConfig,
    38. height: 400,
    39. width: '100%'
    40. });