• 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. plot: {
    19. selectionMode: 'multiple'
    20. },
    21. series: [{
    22. values: [
    23. [1, 22],
    24. [1.5, 34],
    25. [2, 55],
    26. [2.5, 71],
    27. [3, 42],
    28. [3.5, 39],
    29. [4, 50],
    30. [4.5, 70]
    31. ],
    32. backgroundColor: '#5C6BC0',
    33. selectedState: {
    34. alpha: 0.5,
    35. backgroundColor: '#00BCD4 #B2EBF2',
    36. topState: {
    37. backgroundColor: 'red',
    38. offsetX: 20,
    39. offsetY: 20,
    40. }
    41. }
    42. },
    43. {
    44. values: [
    45. [5.5, 35],
    46. [6, 42],
    47. [6.5, 67],
    48. [7, 89],
    49. [7.5, 25],
    50. [8, 34],
    51. [8.5, 67],
    52. [9, 85]
    53. ],
    54. backgroundColor: '#9FA8DA',
    55. selectedState: {
    56. backgroundColor: '#F44336 #FFCDD2',
    57. topState: {
    58. backgroundColor: 'blue',
    59. offsetX: 20,
    60. offsetY: 20,
    61. }
    62. }
    63. }
    64. ]
    65. };
    66.  
    67. zingchart.render({
    68. id: 'myChart',
    69. data: chartConfig,
    70. height: 400,
    71. width: '100%'
    72. });
    73. </script>
    74. </body>
    75.  
    76. </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. plot: {
    4. selectionMode: 'multiple'
    5. },
    6. series: [{
    7. values: [
    8. [1, 22],
    9. [1.5, 34],
    10. [2, 55],
    11. [2.5, 71],
    12. [3, 42],
    13. [3.5, 39],
    14. [4, 50],
    15. [4.5, 70]
    16. ],
    17. backgroundColor: '#5C6BC0',
    18. selectedState: {
    19. alpha: 0.5,
    20. backgroundColor: '#00BCD4 #B2EBF2',
    21. topState: {
    22. backgroundColor: 'red',
    23. offsetX: 20,
    24. offsetY: 20,
    25. }
    26. }
    27. },
    28. {
    29. values: [
    30. [5.5, 35],
    31. [6, 42],
    32. [6.5, 67],
    33. [7, 89],
    34. [7.5, 25],
    35. [8, 34],
    36. [8.5, 67],
    37. [9, 85]
    38. ],
    39. backgroundColor: '#9FA8DA',
    40. selectedState: {
    41. backgroundColor: '#F44336 #FFCDD2',
    42. topState: {
    43. backgroundColor: 'blue',
    44. offsetX: 20,
    45. offsetY: 20,
    46. }
    47. }
    48. }
    49. ]
    50. };
    51.  
    52. zingchart.render({
    53. id: 'myChart',
    54. data: chartConfig,
    55. height: 400,
    56. width: '100%'
    57. });