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