• 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": "range",
    18. "scale-x": {
    19. "min-value": 1420232400000,
    20. "step": "day",
    21. "transform": {
    22. "type": "date",
    23. "all": "%M %d"
    24. }
    25. },
    26. "scale-y": {
    27. "values": "30:36:2",
    28. "format": "$%v"
    29. },
    30. "crosshair-x": {
    31. "plot-label": {
    32. "text": "High: $%node-max-value<br>Low: $%node-min-value"
    33. }
    34. },
    35. "plot": {
    36. "aspect": "spline",
    37. "line-width": 2,
    38. "tooltip": {
    39. "visible": false
    40. }
    41. },
    42. "series": [{
    43. "values": [
    44. [1420232400000, [32.34, 34.31]], //01/02/15
    45.  
    46. [1420491600000, [33.32, 33.90]], //01/05/15
    47. [1420578000000, [33.13, 33.93]], //01/06/15
    48. [1420664400000, [32.72, 33.67]], //01/07/15
    49. [1420750800000, [32.31, 33.85]], //01/08/15
    50. [1420837200000, [32.01, 33.34]], //01/09/15
    51.  
    52. [1421096400000, [32.03, 32.98]], //01/12/15
    53. [1421182800000, [32.15, 33.16]], //01/13/15
    54. [1421269200000, [32.21, 32.79]], //01/14/15
    55. [1421355600000, [32.33, 32.84]], //01/15/15
    56. [1421442000000, [32.01, 32.90]], //01/16/15
    57.  
    58. [1421787600000, [31.90, 32.86]], //01/20/15
    59. [1421874000000, [32.41, 33.14]], //01/21/15
    60. [1421960400000, [32.55, 33.04]], //01/22/15
    61. [1422046800000, [33.01, 33.90]], //01/23/15
    62.  
    63. [1422306000000, [33.31, 34.03]], //01/26/15
    64. [1422392400000, [33.51, 34.15]], //01/27/15
    65. [1422478800000, [33.66, 35.21]], //01/28/15
    66. [1422565200000, [33.51, 35.33]], //01/29/15
    67. [1422651600000, [33.32, 35.35]], //01/30/15
    68. ]
    69. }]
    70. };
    71.  
    72. zingchart.render({
    73. id: 'myChart',
    74. data: myConfig,
    75. height: 400,
    76. width: "100%"
    77. });
    78. </script>
    79. </body>
    80.  
    81. </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": "range",
    3. "scale-x": {
    4. "min-value": 1420232400000,
    5. "step": "day",
    6. "transform": {
    7. "type": "date",
    8. "all": "%M %d"
    9. }
    10. },
    11. "scale-y": {
    12. "values": "30:36:2",
    13. "format": "$%v"
    14. },
    15. "crosshair-x": {
    16. "plot-label": {
    17. "text": "High: $%node-max-value<br>Low: $%node-min-value"
    18. }
    19. },
    20. "plot": {
    21. "aspect": "spline",
    22. "line-width": 2,
    23. "tooltip": {
    24. "visible": false
    25. }
    26. },
    27. "series": [{
    28. "values": [
    29. [1420232400000, [32.34, 34.31]], //01/02/15
    30.  
    31. [1420491600000, [33.32, 33.90]], //01/05/15
    32. [1420578000000, [33.13, 33.93]], //01/06/15
    33. [1420664400000, [32.72, 33.67]], //01/07/15
    34. [1420750800000, [32.31, 33.85]], //01/08/15
    35. [1420837200000, [32.01, 33.34]], //01/09/15
    36.  
    37. [1421096400000, [32.03, 32.98]], //01/12/15
    38. [1421182800000, [32.15, 33.16]], //01/13/15
    39. [1421269200000, [32.21, 32.79]], //01/14/15
    40. [1421355600000, [32.33, 32.84]], //01/15/15
    41. [1421442000000, [32.01, 32.90]], //01/16/15
    42.  
    43. [1421787600000, [31.90, 32.86]], //01/20/15
    44. [1421874000000, [32.41, 33.14]], //01/21/15
    45. [1421960400000, [32.55, 33.04]], //01/22/15
    46. [1422046800000, [33.01, 33.90]], //01/23/15
    47.  
    48. [1422306000000, [33.31, 34.03]], //01/26/15
    49. [1422392400000, [33.51, 34.15]], //01/27/15
    50. [1422478800000, [33.66, 35.21]], //01/28/15
    51. [1422565200000, [33.51, 35.33]], //01/29/15
    52. [1422651600000, [33.32, 35.35]], //01/30/15
    53. ]
    54. }]
    55. };
    56.  
    57. zingchart.render({
    58. id: 'myChart',
    59. data: myConfig,
    60. height: 400,
    61. width: "100%"
    62. });