• 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. width: 100%;
    14. height: 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. "graphset": [{
    25. "type": "grid",
    26. "plotarea": {
    27. "margin": "35 20 20 20"
    28. },
    29. "options": {
    30. "col-labels": ["Id", "First Name", "Last Name", "Birthday", "Sex", "Country"],
    31. "col-widths": ["6%", "21%", "21%", "21%", "9%", "22%"],
    32. "style": {
    33. ".th": {
    34. "y": "0px",
    35. "background-color": "#7ca82b",
    36. "font-color": "#fff",
    37. "font-size": "18",
    38. "font-weight": "none",
    39. "height": "40px"
    40. }
    41. }
    42. },
    43. "series": [{
    44. "values": [1, "Jon", "Anderson", "January 9, 1957", "M", "United Kingdom"]
    45. },
    46. {
    47. "values": [2, "Steve", "Hogarth", "January 25, 1950", "M", "United Kingdom"]
    48. },
    49. {
    50. "values": [3, "Jim", "Carrey", "June 12, 1972", "M", "United States"]
    51. },
    52. {
    53. "values": [4, "Paul", "Hogan", "October 22, 1956", "M", "Australia"]
    54. },
    55. {
    56. "values": [5, "Brenden", "Morrow", "January 16, 1979", "M", "Canada"]
    57. },
    58. {
    59. "values": [6, "Kate", "Moss", "January 16, 1974", "F", "United Kingdom"]
    60. },
    61. {
    62. "values": [7, "David", "Chokachi", "January 16, 1968", "M", "United States"]
    63. },
    64. {
    65. "values": [8, "Josie", "Davis", "January 16, 1973", "F", "United Kingdom"]
    66. },
    67. {
    68. "values": [9, "Alex", "Morgan", "July 2, 1989", "F", "United States"]
    69. },
    70. {
    71. "values": [10, "Tom", "Cruise", "July 3, 1962", "M", "United States"]
    72. }
    73. ]
    74. }]
    75. };
    76.  
    77. zingchart.render({
    78. id: 'myChart',
    79. data: myConfig,
    80. height: "100%",
    81. width: "100%"
    82. });
    83. </script>
    84. </body>
    85.  
    86. </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. width: 100%;
    5. height: 100%;
    6. }
    1. var myConfig = {
    2. "graphset": [{
    3. "type": "grid",
    4. "plotarea": {
    5. "margin": "35 20 20 20"
    6. },
    7. "options": {
    8. "col-labels": ["Id", "First Name", "Last Name", "Birthday", "Sex", "Country"],
    9. "col-widths": ["6%", "21%", "21%", "21%", "9%", "22%"],
    10. "style": {
    11. ".th": {
    12. "y": "0px",
    13. "background-color": "#7ca82b",
    14. "font-color": "#fff",
    15. "font-size": "18",
    16. "font-weight": "none",
    17. "height": "40px"
    18. }
    19. }
    20. },
    21. "series": [{
    22. "values": [1, "Jon", "Anderson", "January 9, 1957", "M", "United Kingdom"]
    23. },
    24. {
    25. "values": [2, "Steve", "Hogarth", "January 25, 1950", "M", "United Kingdom"]
    26. },
    27. {
    28. "values": [3, "Jim", "Carrey", "June 12, 1972", "M", "United States"]
    29. },
    30. {
    31. "values": [4, "Paul", "Hogan", "October 22, 1956", "M", "Australia"]
    32. },
    33. {
    34. "values": [5, "Brenden", "Morrow", "January 16, 1979", "M", "Canada"]
    35. },
    36. {
    37. "values": [6, "Kate", "Moss", "January 16, 1974", "F", "United Kingdom"]
    38. },
    39. {
    40. "values": [7, "David", "Chokachi", "January 16, 1968", "M", "United States"]
    41. },
    42. {
    43. "values": [8, "Josie", "Davis", "January 16, 1973", "F", "United Kingdom"]
    44. },
    45. {
    46. "values": [9, "Alex", "Morgan", "July 2, 1989", "F", "United States"]
    47. },
    48. {
    49. "values": [10, "Tom", "Cruise", "July 3, 1962", "M", "United States"]
    50. }
    51. ]
    52. }]
    53. };
    54.  
    55. zingchart.render({
    56. id: 'myChart',
    57. data: myConfig,
    58. height: "100%",
    59. width: "100%"
    60. });