• 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": "%high"
    20. },
    21. "crosshair-x": {
    22. "plot-label": {
    23. "text": "Open: $%open<br><strong>High: $%high</strong><br>Low: $%low<br>Close: $%close",
    24. "decimals": 2
    25. },
    26. "scale-label": {
    27.  
    28. }
    29. },
    30. "scale-x": {
    31. "labels": ["M", "T", "W", "H", "F"]
    32. },
    33. "scale-y": {
    34. "values": "30:33:1",
    35. "format": "$%v"
    36. },
    37. "plot": {
    38. "tooltip": {
    39. "visible": false
    40. },
    41. },
    42. "series": [{
    43. "values": [
    44. [32.47, 32.75, 31.50, 31.64],
    45. [31.77, 32.05, 31.55, 31.96],
    46. [31.49, 31.82, 31.35, 31.77],
    47. [31.70, 31.99, 30.71, 30.89],
    48. [30.99, 31.57, 30.50, 31.55],
    49. ]
    50. }]
    51. };
    52.  
    53. zingchart.render({
    54. id: 'myChart',
    55. data: myConfig,
    56. height: 300,
    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": "%high"
    5. },
    6. "crosshair-x": {
    7. "plot-label": {
    8. "text": "Open: $%open<br><strong>High: $%high</strong><br>Low: $%low<br>Close: $%close",
    9. "decimals": 2
    10. },
    11. "scale-label": {
    12.  
    13. }
    14. },
    15. "scale-x": {
    16. "labels": ["M", "T", "W", "H", "F"]
    17. },
    18. "scale-y": {
    19. "values": "30:33:1",
    20. "format": "$%v"
    21. },
    22. "plot": {
    23. "tooltip": {
    24. "visible": false
    25. },
    26. },
    27. "series": [{
    28. "values": [
    29. [32.47, 32.75, 31.50, 31.64],
    30. [31.77, 32.05, 31.55, 31.96],
    31. [31.49, 31.82, 31.35, 31.77],
    32. [31.70, 31.99, 30.71, 30.89],
    33. [30.99, 31.57, 30.50, 31.55],
    34. ]
    35. }]
    36. };
    37.  
    38. zingchart.render({
    39. id: 'myChart',
    40. data: myConfig,
    41. height: 300,
    42. width: "100%"
    43. });