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