• 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": "line",
    18. "crosshair-x": {
    19. "scale-label": {
    20. "text": "%v<br>at 12 p.m.",
    21. "transform": {
    22. "type": "date",
    23. "all": "%D,<br>%M %d, %Y"
    24. }
    25. }
    26. },
    27. "scale-x": {
    28. "min-value": 1451649600000,
    29. "step": "day",
    30. "transform": {
    31. "type": "date",
    32. "all": "%m/%d"
    33. },
    34. "max-items": 12
    35. },
    36. "plot": {
    37. "tooltip": {
    38. "visible": false
    39. }
    40. },
    41. "series": [{
    42. "values": [
    43. [1451649600000, 20], //01/01/16
    44. [1451736000000, 40], //01/02/16
    45. [1451822400000, 25], //01/03/16
    46. [1451908800000, 50], //01/04/16
    47. [1451995200000, 15], //01/05/16
    48. [1452081600000, 45], //01/06/16
    49. [1452168000000, 33], //01/07/16
    50. [1452254400000, 34], //01/08/16
    51. [1452340800000, 49], //01/09/16
    52. [1452427200000, 53], //01/10/16
    53. [1452513600000, 19], //01/11/16
    54. [1452600000000, 35] //01/12/16
    55. ],
    56. "text": "Blueberries"
    57. },
    58. {
    59. "values": [
    60. [1451649600000, 11],
    61. [1451736000000, 30],
    62. [1451822400000, 21],
    63. [1451908800000, 18],
    64. [1451995200000, 59],
    65. [1452081600000, 50],
    66. [1452168000000, 28],
    67. [1452254400000, 33],
    68. [1452340800000, 23],
    69. [1452427200000, 15],
    70. [1452513600000, 18],
    71. [1452600000000, 26]
    72. ],
    73. "text": "Cherries"
    74. },
    75. {
    76. "values": [
    77. [1451649600000, 30],
    78. [1451736000000, 21],
    79. [1451822400000, 18],
    80. [1451908800000, 21],
    81. [1451995200000, 33],
    82. [1452081600000, 41],
    83. [1452168000000, 29],
    84. [1452254400000, 15],
    85. [1452340800000, 11],
    86. [1452427200000, 12],
    87. [1452513600000, 26],
    88. [1452600000000, 23]
    89. ],
    90. "text": "Kiwis"
    91. },
    92. {
    93. "values": [
    94. [1451649600000, 34],
    95. [1451736000000, 16],
    96. [1451822400000, 26],
    97. [1451908800000, 15],
    98. [1451995200000, 19],
    99. [1452081600000, 21],
    100. [1452168000000, 20],
    101. [1452254400000, 24],
    102. [1452340800000, 35],
    103. [1452427200000, 41],
    104. [1452513600000, 42],
    105. [1452600000000, 38]
    106. ],
    107. "text": "Kumquats"
    108. }
    109. ]
    110. };
    111.  
    112. zingchart.render({
    113. id: 'myChart',
    114. data: myConfig,
    115. height: 400,
    116. width: "100%"
    117. });
    118. </script>
    119. </body>
    120.  
    121. </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": "line",
    3. "crosshair-x": {
    4. "scale-label": {
    5. "text": "%v<br>at 12 p.m.",
    6. "transform": {
    7. "type": "date",
    8. "all": "%D,<br>%M %d, %Y"
    9. }
    10. }
    11. },
    12. "scale-x": {
    13. "min-value": 1451649600000,
    14. "step": "day",
    15. "transform": {
    16. "type": "date",
    17. "all": "%m/%d"
    18. },
    19. "max-items": 12
    20. },
    21. "plot": {
    22. "tooltip": {
    23. "visible": false
    24. }
    25. },
    26. "series": [{
    27. "values": [
    28. [1451649600000, 20], //01/01/16
    29. [1451736000000, 40], //01/02/16
    30. [1451822400000, 25], //01/03/16
    31. [1451908800000, 50], //01/04/16
    32. [1451995200000, 15], //01/05/16
    33. [1452081600000, 45], //01/06/16
    34. [1452168000000, 33], //01/07/16
    35. [1452254400000, 34], //01/08/16
    36. [1452340800000, 49], //01/09/16
    37. [1452427200000, 53], //01/10/16
    38. [1452513600000, 19], //01/11/16
    39. [1452600000000, 35] //01/12/16
    40. ],
    41. "text": "Blueberries"
    42. },
    43. {
    44. "values": [
    45. [1451649600000, 11],
    46. [1451736000000, 30],
    47. [1451822400000, 21],
    48. [1451908800000, 18],
    49. [1451995200000, 59],
    50. [1452081600000, 50],
    51. [1452168000000, 28],
    52. [1452254400000, 33],
    53. [1452340800000, 23],
    54. [1452427200000, 15],
    55. [1452513600000, 18],
    56. [1452600000000, 26]
    57. ],
    58. "text": "Cherries"
    59. },
    60. {
    61. "values": [
    62. [1451649600000, 30],
    63. [1451736000000, 21],
    64. [1451822400000, 18],
    65. [1451908800000, 21],
    66. [1451995200000, 33],
    67. [1452081600000, 41],
    68. [1452168000000, 29],
    69. [1452254400000, 15],
    70. [1452340800000, 11],
    71. [1452427200000, 12],
    72. [1452513600000, 26],
    73. [1452600000000, 23]
    74. ],
    75. "text": "Kiwis"
    76. },
    77. {
    78. "values": [
    79. [1451649600000, 34],
    80. [1451736000000, 16],
    81. [1451822400000, 26],
    82. [1451908800000, 15],
    83. [1451995200000, 19],
    84. [1452081600000, 21],
    85. [1452168000000, 20],
    86. [1452254400000, 24],
    87. [1452340800000, 35],
    88. [1452427200000, 41],
    89. [1452513600000, 42],
    90. [1452600000000, 38]
    91. ],
    92. "text": "Kumquats"
    93. }
    94. ]
    95. };
    96.  
    97. zingchart.render({
    98. id: 'myChart',
    99. data: myConfig,
    100. height: 400,
    101. width: "100%"
    102. });