• 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. let chartConfig = {
    17. type: 'bar',
    18. series: [{
    19. values: [
    20. [1, 22],
    21. [1.5, 34],
    22. [2, 55],
    23. [2.5, 71],
    24. [3, 42],
    25. [3.5, 39],
    26. [4, 50],
    27. [4.5, 70]
    28. ],
    29. backgroundColor: '#5C6BC0',
    30. hoverState: {
    31. styles: [{
    32. backgroundColor: 'red',
    33. }, {
    34. backgroundColor: 'orange',
    35. }, {
    36. backgroundColor: 'yellow',
    37. }, {
    38. backgroundColor: 'green',
    39. }, {
    40. backgroundColor: 'blue',
    41. }, {
    42. backgroundColor: 'indigo',
    43. }, {
    44. backgroundColor: 'violet',
    45. }, {
    46. backgroundColor: 'pink',
    47. }]
    48. },
    49. },
    50. {
    51. values: [
    52. [5.5, 35],
    53. [6, 42],
    54. [6.5, 67],
    55. [7, 89],
    56. [7.5, 25],
    57. [8, 34],
    58. [8.5, 67],
    59. [9, 85]
    60. ],
    61. backgroundColor: '#9FA8DA',
    62. hoverState: {
    63. styles: [{
    64. backgroundColor: 'lightCoral',
    65. }, {
    66. backgroundColor: 'lightSalmon',
    67. }, {
    68. backgroundColor: 'lemonChiffon',
    69. }, {
    70. backgroundColor: 'paleGreen',
    71. }, {
    72. backgroundColor: 'lightCyan',
    73. }, {
    74. backgroundColor: 'mistyRose',
    75. }, {
    76. backgroundColor: 'lavender',
    77. }, {
    78. backgroundColor: 'thistle',
    79. }]
    80. },
    81. }
    82. ]
    83. };
    84.  
    85. zingchart.render({
    86. id: 'myChart',
    87. data: chartConfig,
    88. height: 400,
    89. width: "100%"
    90. });
    91. </script>
    92. </body>
    93.  
    94. </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. let chartConfig = {
    2. type: 'bar',
    3. series: [{
    4. values: [
    5. [1, 22],
    6. [1.5, 34],
    7. [2, 55],
    8. [2.5, 71],
    9. [3, 42],
    10. [3.5, 39],
    11. [4, 50],
    12. [4.5, 70]
    13. ],
    14. backgroundColor: '#5C6BC0',
    15. hoverState: {
    16. styles: [{
    17. backgroundColor: 'red',
    18. }, {
    19. backgroundColor: 'orange',
    20. }, {
    21. backgroundColor: 'yellow',
    22. }, {
    23. backgroundColor: 'green',
    24. }, {
    25. backgroundColor: 'blue',
    26. }, {
    27. backgroundColor: 'indigo',
    28. }, {
    29. backgroundColor: 'violet',
    30. }, {
    31. backgroundColor: 'pink',
    32. }]
    33. },
    34. },
    35. {
    36. values: [
    37. [5.5, 35],
    38. [6, 42],
    39. [6.5, 67],
    40. [7, 89],
    41. [7.5, 25],
    42. [8, 34],
    43. [8.5, 67],
    44. [9, 85]
    45. ],
    46. backgroundColor: '#9FA8DA',
    47. hoverState: {
    48. styles: [{
    49. backgroundColor: 'lightCoral',
    50. }, {
    51. backgroundColor: 'lightSalmon',
    52. }, {
    53. backgroundColor: 'lemonChiffon',
    54. }, {
    55. backgroundColor: 'paleGreen',
    56. }, {
    57. backgroundColor: 'lightCyan',
    58. }, {
    59. backgroundColor: 'mistyRose',
    60. }, {
    61. backgroundColor: 'lavender',
    62. }, {
    63. backgroundColor: 'thistle',
    64. }]
    65. },
    66. }
    67. ]
    68. };
    69.  
    70. zingchart.render({
    71. id: 'myChart',
    72. data: chartConfig,
    73. height: 400,
    74. width: "100%"
    75. });