• 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: "bar",
    18. scaleY: { //define the scale to assoicate markers
    19. markers: [ //create marker array
    20. { //create n number of marker objects
    21. type: "line",
    22. range: [82]
    23. },
    24. {
    25. type: "area",
    26. range: [0, 22]
    27. }
    28. ]
    29. },
    30. series: [{
    31. values: [48, 45, 95, 25, 65, 73, 71, 74, 29, 77]
    32. },
    33. {
    34. values: [70, 7, 56, 25, 15, 84, 50, 29, 97, 26]
    35. }
    36. ]
    37. };
    38.  
    39. zingchart.render({
    40. id: 'myChart',
    41. data: myConfig,
    42. height: 400,
    43. width: '100%'
    44. });
    45. </script>
    46. </body>
    47.  
    48. </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: "bar",
    3. scaleY: { //define the scale to assoicate markers
    4. markers: [ //create marker array
    5. { //create n number of marker objects
    6. type: "line",
    7. range: [82]
    8. },
    9. {
    10. type: "area",
    11. range: [0, 22]
    12. }
    13. ]
    14. },
    15. series: [{
    16. values: [48, 45, 95, 25, 65, 73, 71, 74, 29, 77]
    17. },
    18. {
    19. values: [70, 7, 56, 25, 15, 84, 50, 29, 97, 26]
    20. }
    21. ]
    22. };
    23.  
    24. zingchart.render({
    25. id: 'myChart',
    26. data: myConfig,
    27. height: 400,
    28. width: '100%'
    29. });