• 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. backgroundColor: '#00BCD4 #B2EBF2'
    32. },
    33. },
    34. {
    35. values: [
    36. [5.5, 35],
    37. [6, 42],
    38. [6.5, 67],
    39. [7, 89],
    40. [7.5, 25],
    41. [8, 34],
    42. [8.5, 67],
    43. [9, 85]
    44. ],
    45. backgroundColor: '#9FA8DA',
    46. hoverState: {
    47. backgroundColor: '#F44336 #FFCDD2'
    48. }
    49. }
    50. ]
    51. };
    52.  
    53. zingchart.render({
    54. id: 'myChart',
    55. data: chartConfig,
    56. height: 400,
    57. width: "100%"
    58. });
    59. </script>
    60. </body>
    61.  
    62. </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. backgroundColor: '#00BCD4 #B2EBF2'
    17. },
    18. },
    19. {
    20. values: [
    21. [5.5, 35],
    22. [6, 42],
    23. [6.5, 67],
    24. [7, 89],
    25. [7.5, 25],
    26. [8, 34],
    27. [8.5, 67],
    28. [9, 85]
    29. ],
    30. backgroundColor: '#9FA8DA',
    31. hoverState: {
    32. backgroundColor: '#F44336 #FFCDD2'
    33. }
    34. }
    35. ]
    36. };
    37.  
    38. zingchart.render({
    39. id: 'myChart',
    40. data: chartConfig,
    41. height: 400,
    42. width: "100%"
    43. });