• 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. mediaRules: [{
    28. maxWidth: 500,
    29. backgroundColor: 'darkRed',
    30. borderWidth: 0,
    31. borderColor: 'transparent',
    32. }]
    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. backgroundColor: 'black'
    49. }, {
    50. backgroundColor: 'brown'
    51. }, {
    52. backgroundColor: 'white'
    53. }]
    54. }
    55. },
    56. series: [{
    57. values: [11, 16, 7, 14, 11, 24, 42, 26, 13, 32, 12]
    58. },
    59. {
    60. values: [28, 35, 22, 35, 30, 46, 36, 33, 26, 23, 27]
    61. }
    62. ]
    63.  
    64. };
    65.  
    66. zingchart.render({
    67. id: 'myChart',
    68. data: chartConfig,
    69. height: 400,
    70. width: '100%'
    71. });
    72. </script>
    73. </body>
    74.  
    75. </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. mediaRules: [{
    13. maxWidth: 500,
    14. backgroundColor: 'darkRed',
    15. borderWidth: 0,
    16. borderColor: 'transparent',
    17. }]
    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. backgroundColor: 'black'
    34. }, {
    35. backgroundColor: 'brown'
    36. }, {
    37. backgroundColor: 'white'
    38. }]
    39. }
    40. },
    41. series: [{
    42. values: [11, 16, 7, 14, 11, 24, 42, 26, 13, 32, 12]
    43. },
    44. {
    45. values: [28, 35, 22, 35, 30, 46, 36, 33, 26, 23, 27]
    46. }
    47. ]
    48.  
    49. };
    50.  
    51. zingchart.render({
    52. id: 'myChart',
    53. data: chartConfig,
    54. height: 400,
    55. width: '100%'
    56. });