• 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. let chartConfig = {
    24. type: 'grid',
    25. plotarea: {
    26. margin: '35 20 20 20'
    27. },
    28. options: {
    29. headerRow: false
    30. },
    31. series: [{
    32. values: ['Jon', 'Anderson', 'January 9, 1957', 'United Kingdom']
    33. },
    34. {
    35. values: ['Steve', 'Hogarth', 'January 25, 1950', 'United Kingdom']
    36. },
    37. {
    38. values: ['Jim', 'Carrey', 'June 12, 1972', 'United States']
    39. },
    40. {
    41. values: ['Paul', 'Hogan', 'October 22, 1956', 'Australia']
    42. },
    43. {
    44. values: ['Brenden', 'Morrow', 'January 16, 1979', 'Canada']
    45. },
    46. {
    47. values: ['Kate', 'Moss', 'January 16, 1974', 'United Kingdom']
    48. },
    49. {
    50. values: ['David', 'Chokachi', 'January 16, 1968', 'United States']
    51. },
    52. {
    53. values: ['Josie', 'Davis', 'January 16, 1973', 'United Kingdom']
    54. },
    55. {
    56. values: ['Alex', 'Morgan', 'July 2, 1989', 'United States']
    57. },
    58. {
    59. values: ['Tom', 'Cruise', 'July 3, 1962', 'United States']
    60. },
    61. {
    62. values: ['Tony', 'Bennett', 'August 3, 1926', 'United States']
    63. },
    64. {
    65. values: ['Martha', 'Stewart', 'August 3, 1941', 'United States']
    66. },
    67. {
    68. values: ['Tom', 'Brady', 'August 3, 1977', 'United States']
    69. },
    70. {
    71. values: ['Julie', 'Bowen', 'March 3, 1970', 'United States']
    72. },
    73. {
    74. values: ['Barack', 'Obama', 'August 4, 1961', 'United States']
    75. }
    76. ]
    77. };
    78.  
    79. zingchart.render({
    80. id: 'myChart',
    81. data: chartConfig,
    82. height: '100%',
    83. width: '100%'
    84. });
    85. </script>
    86. </body>
    87.  
    88. </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. let chartConfig = {
    2. type: 'grid',
    3. plotarea: {
    4. margin: '35 20 20 20'
    5. },
    6. options: {
    7. headerRow: false
    8. },
    9. series: [{
    10. values: ['Jon', 'Anderson', 'January 9, 1957', 'United Kingdom']
    11. },
    12. {
    13. values: ['Steve', 'Hogarth', 'January 25, 1950', 'United Kingdom']
    14. },
    15. {
    16. values: ['Jim', 'Carrey', 'June 12, 1972', 'United States']
    17. },
    18. {
    19. values: ['Paul', 'Hogan', 'October 22, 1956', 'Australia']
    20. },
    21. {
    22. values: ['Brenden', 'Morrow', 'January 16, 1979', 'Canada']
    23. },
    24. {
    25. values: ['Kate', 'Moss', 'January 16, 1974', 'United Kingdom']
    26. },
    27. {
    28. values: ['David', 'Chokachi', 'January 16, 1968', 'United States']
    29. },
    30. {
    31. values: ['Josie', 'Davis', 'January 16, 1973', 'United Kingdom']
    32. },
    33. {
    34. values: ['Alex', 'Morgan', 'July 2, 1989', 'United States']
    35. },
    36. {
    37. values: ['Tom', 'Cruise', 'July 3, 1962', 'United States']
    38. },
    39. {
    40. values: ['Tony', 'Bennett', 'August 3, 1926', 'United States']
    41. },
    42. {
    43. values: ['Martha', 'Stewart', 'August 3, 1941', 'United States']
    44. },
    45. {
    46. values: ['Tom', 'Brady', 'August 3, 1977', 'United States']
    47. },
    48. {
    49. values: ['Julie', 'Bowen', 'March 3, 1970', 'United States']
    50. },
    51. {
    52. values: ['Barack', 'Obama', 'August 4, 1961', 'United States']
    53. }
    54. ]
    55. };
    56.  
    57. zingchart.render({
    58. id: 'myChart',
    59. data: chartConfig,
    60. height: '100%',
    61. width: '100%'
    62. });