• 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>
    10. html,
    11. body,
    12. #myChart {
    13. height: 100%;
    14. width: 100%;
    15. }
    16. </style>
    17. </head>
    18.  
    19. <body>
    20. <div id='myChart'></div>
    21. <script>
    22. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    23. var myConfig = {
    24. type: "bar",
    25. utc: true,
    26. scaleX: {
    27. minValue: 1420070400000,
    28. step: "day",
    29. transform: {
    30. type: "date",
    31. all: "%M %d, %Y"
    32. }
    33. },
    34. series: [{
    35. values: [
    36. [1420089129000, 20],
    37. [1420103703000, 40],
    38. [1420146903000, 25],
    39. [1420175525000, 50],
    40. [1420200725000, 15],
    41. [1420315925000, 45],
    42. [1420326312000, 33],
    43. [1420329030000, 34]
    44. ]
    45. },
    46. {
    47. values: [
    48. [1420501830000, 5],
    49. [1420523430000, 30],
    50. [1420588230000, 21],
    51. [1420671905000, 18],
    52. [1420700705000, 59],
    53. [1420747505000, 50],
    54. [1420797905000, 28],
    55. [1420921800000, 33]
    56. ]
    57. }
    58. ]
    59. };
    60.  
    61. zingchart.render({
    62. id: 'myChart',
    63. data: myConfig,
    64. height: "100%",
    65. width: "100%"
    66. });
    67. </script>
    68. </body>
    69.  
    70. </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. html,
    2. body,
    3. #myChart {
    4. height: 100%;
    5. width: 100%;
    6. }
    1. var myConfig = {
    2. type: "bar",
    3. utc: true,
    4. scaleX: {
    5. minValue: 1420070400000,
    6. step: "day",
    7. transform: {
    8. type: "date",
    9. all: "%M %d, %Y"
    10. }
    11. },
    12. series: [{
    13. values: [
    14. [1420089129000, 20],
    15. [1420103703000, 40],
    16. [1420146903000, 25],
    17. [1420175525000, 50],
    18. [1420200725000, 15],
    19. [1420315925000, 45],
    20. [1420326312000, 33],
    21. [1420329030000, 34]
    22. ]
    23. },
    24. {
    25. values: [
    26. [1420501830000, 5],
    27. [1420523430000, 30],
    28. [1420588230000, 21],
    29. [1420671905000, 18],
    30. [1420700705000, 59],
    31. [1420747505000, 50],
    32. [1420797905000, 28],
    33. [1420921800000, 33]
    34. ]
    35. }
    36. ]
    37. };
    38.  
    39. zingchart.render({
    40. id: 'myChart',
    41. data: myConfig,
    42. height: "100%",
    43. width: "100%"
    44. });