• 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. }, {
    28. backgroundColor: 'orange'
    29. }, {
    30. backgroundColor: 'yellow'
    31. }, {
    32. backgroundColor: 'green'
    33. }, {
    34. backgroundColor: 'blue'
    35. }, {
    36. backgroundColor: 'indigo'
    37. }, {
    38. backgroundColor: 'violet'
    39. }, {
    40. backgroundColor: 'pink'
    41. }, {
    42. backgroundColor: 'black'
    43. }, {
    44. backgroundColor: 'brown'
    45. }, {
    46. backgroundColor: 'white'
    47. }]
    48. }
    49. },
    50. series: [{
    51. values: [11, 16, 7, 14, 11, 24, 42, 26, 13, 32, 12]
    52. },
    53. {
    54. values: [28, 35, 22, 35, 30, 46, 36, 33, 26, 23, 27]
    55. }
    56. ]
    57.  
    58. };
    59.  
    60. zingchart.render({
    61. id: 'myChart',
    62. data: chartConfig,
    63. height: 400,
    64. width: '100%'
    65. });
    66. </script>
    67. </body>
    68.  
    69. </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. }, {
    13. backgroundColor: 'orange'
    14. }, {
    15. backgroundColor: 'yellow'
    16. }, {
    17. backgroundColor: 'green'
    18. }, {
    19. backgroundColor: 'blue'
    20. }, {
    21. backgroundColor: 'indigo'
    22. }, {
    23. backgroundColor: 'violet'
    24. }, {
    25. backgroundColor: 'pink'
    26. }, {
    27. backgroundColor: 'black'
    28. }, {
    29. backgroundColor: 'brown'
    30. }, {
    31. backgroundColor: 'white'
    32. }]
    33. }
    34. },
    35. series: [{
    36. values: [11, 16, 7, 14, 11, 24, 42, 26, 13, 32, 12]
    37. },
    38. {
    39. values: [28, 35, 22, 35, 30, 46, 36, 33, 26, 23, 27]
    40. }
    41. ]
    42.  
    43. };
    44.  
    45. zingchart.render({
    46. id: 'myChart',
    47. data: chartConfig,
    48. height: 400,
    49. width: '100%'
    50. });