• 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": "stock",
    18. "title": {
    19. "text": "Candlestick Chart"
    20. },
    21. "plot": {
    22. "aspect": "candlestick"
    23. },
    24. "scale-y": {
    25. "values": "30:34:2"
    26. },
    27. "series": [{
    28. "values": [
    29. [31.34, 31.46, 30.87, 31.06],
    30. [31.80, 32.25, 31.52, 32.05],
    31. [32.05, 32.57, 31.93, 32.30],
    32. [32.21, 32.39, 31.98, 32.08],
    33. [32.32, 32.38, 32.13, 32.37],
    34. [32.52, 32.53, 31.95, 32.03],
    35. [32.07, 32.14, 31.77, 31.98],
    36. [32.26, 32.33, 31.61, 31.86],
    37. [31.65, 31.85, 31.41, 31.78],
    38. [31.86, 31.97, 31.56, 31.58],
    39. [31.51, 31.65, 31.45, 31.59],
    40. [31.84, 31.87, 31.55, 31.85],
    41. [31.83, 32.08, 31.71, 32.04],
    42. [32.30, 32.36, 31.96, 32.28],
    43. [32.43, 32.88, 32.29, 32.48],
    44. [32.72, 32.74, 32.40, 32.60],
    45. [32.39, 32.46, 32.20, 32.38],
    46. [32.47, 32.49, 31.81, 31.84],
    47. [31.84, 32.20, 31.78, 32.08],
    48. [31.88, 32.11, 31.82, 31.89]
    49. ]
    50. }]
    51. };
    52.  
    53. zingchart.render({
    54. id: 'myChart',
    55. data: myConfig,
    56. height: 400,
    57. width: "100%"
    58. });
    59. </script>
    60. </body>
    61.  
    62. </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": "stock",
    3. "title": {
    4. "text": "Candlestick Chart"
    5. },
    6. "plot": {
    7. "aspect": "candlestick"
    8. },
    9. "scale-y": {
    10. "values": "30:34:2"
    11. },
    12. "series": [{
    13. "values": [
    14. [31.34, 31.46, 30.87, 31.06],
    15. [31.80, 32.25, 31.52, 32.05],
    16. [32.05, 32.57, 31.93, 32.30],
    17. [32.21, 32.39, 31.98, 32.08],
    18. [32.32, 32.38, 32.13, 32.37],
    19. [32.52, 32.53, 31.95, 32.03],
    20. [32.07, 32.14, 31.77, 31.98],
    21. [32.26, 32.33, 31.61, 31.86],
    22. [31.65, 31.85, 31.41, 31.78],
    23. [31.86, 31.97, 31.56, 31.58],
    24. [31.51, 31.65, 31.45, 31.59],
    25. [31.84, 31.87, 31.55, 31.85],
    26. [31.83, 32.08, 31.71, 32.04],
    27. [32.30, 32.36, 31.96, 32.28],
    28. [32.43, 32.88, 32.29, 32.48],
    29. [32.72, 32.74, 32.40, 32.60],
    30. [32.39, 32.46, 32.20, 32.38],
    31. [32.47, 32.49, 31.81, 31.84],
    32. [31.84, 32.20, 31.78, 32.08],
    33. [31.88, 32.11, 31.82, 31.89]
    34. ]
    35. }]
    36. };
    37.  
    38. zingchart.render({
    39. id: 'myChart',
    40. data: myConfig,
    41. height: 400,
    42. width: "100%"
    43. });