• 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. subtitle: {
    19. text: 'Hover over the bars!'
    20. },
    21. plot: {
    22. hoverState: {
    23. borderWidth: '4px',
    24. borderColor: '#000',
    25. styles: [{
    26. backgroundColor: 'red',
    27. bottomState: {
    28. backgroundColor: 'darkRed',
    29. offsetX: 10,
    30. }
    31. }, {
    32. backgroundColor: 'orange'
    33. }, {
    34. backgroundColor: 'yellow'
    35. }, {
    36. backgroundColor: 'green'
    37. }, {
    38. backgroundColor: 'blue'
    39. }, {
    40. backgroundColor: 'indigo'
    41. }, {
    42. backgroundColor: 'violet'
    43. }, {
    44. backgroundColor: 'pink'
    45. }, {
    46. backgroundColor: 'black'
    47. }, {
    48. backgroundColor: 'brown'
    49. }, {
    50. backgroundColor: 'white'
    51. }]
    52. }
    53. },
    54. series: [{
    55. values: [11, 16, 7, 14, 11, 24, 42, 26, 13, 32, 12]
    56. },
    57. {
    58. values: [28, 35, 22, 35, 30, 46, 36, 33, 26, 23, 27]
    59. }
    60. ]
    61.  
    62. };
    63.  
    64. zingchart.render({
    65. id: 'myChart',
    66. data: chartConfig,
    67. height: 400,
    68. width: '100%'
    69. });
    70. </script>
    71. </body>
    72.  
    73. </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. subtitle: {
    4. text: 'Hover over the bars!'
    5. },
    6. plot: {
    7. hoverState: {
    8. borderWidth: '4px',
    9. borderColor: '#000',
    10. styles: [{
    11. backgroundColor: 'red',
    12. bottomState: {
    13. backgroundColor: 'darkRed',
    14. offsetX: 10,
    15. }
    16. }, {
    17. backgroundColor: 'orange'
    18. }, {
    19. backgroundColor: 'yellow'
    20. }, {
    21. backgroundColor: 'green'
    22. }, {
    23. backgroundColor: 'blue'
    24. }, {
    25. backgroundColor: 'indigo'
    26. }, {
    27. backgroundColor: 'violet'
    28. }, {
    29. backgroundColor: 'pink'
    30. }, {
    31. backgroundColor: 'black'
    32. }, {
    33. backgroundColor: 'brown'
    34. }, {
    35. backgroundColor: 'white'
    36. }]
    37. }
    38. },
    39. series: [{
    40. values: [11, 16, 7, 14, 11, 24, 42, 26, 13, 32, 12]
    41. },
    42. {
    43. values: [28, 35, 22, 35, 30, 46, 36, 33, 26, 23, 27]
    44. }
    45. ]
    46.  
    47. };
    48.  
    49. zingchart.render({
    50. id: 'myChart',
    51. data: chartConfig,
    52. height: 400,
    53. width: '100%'
    54. });