• Edit
  • Download
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7. <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
    8.  
    9. <script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
    10. <style></style>
    11. </head>
    12.  
    13. <body>
    14. <div id='myChart'></div>
    15. <script>
    16. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    17. let chartConfig = {
    18. type: 'bar',
    19. plot: {
    20. valueBox: {
    21. alpha: 0.7,
    22. borderRadius: 3,
    23. fontFamily: 'Roboto',
    24. fontSize: 12,
    25. fontWeight: 'bold',
    26. padding: '5 8',
    27. shadow: false,
    28. textAlpha: 1
    29. },
    30. tooltip: {
    31. visible: false
    32. }
    33. },
    34. series: [{
    35. values: [
    36. [1, 22],
    37. [1.5, 34],
    38. [2, 55],
    39. [2.5, 71],
    40. [3, 42],
    41. [3.5, 39],
    42. [4, 50],
    43. [4.5, 70]
    44. ],
    45. backgroundColor: '#E3F2FD #3F51B5',
    46. valueBox: {
    47. backgroundColor: '#FCE4EC #C2185B',
    48. fontColor: '#3F51B5'
    49. }
    50. },
    51. {
    52. values: [
    53. [5.5, 35],
    54. [6, 42],
    55. [6.5, 67],
    56. [7, 89],
    57. [7.5, 25],
    58. [8, 34],
    59. [8.5, 67],
    60. [9, 85]
    61. ],
    62. backgroundColor: '#E0F7FA #009688',
    63. valueBox: {
    64. backgroundColor: '#F9FBE7 #AFB42B',
    65. fontColor: '#009688'
    66. }
    67. }
    68. ]
    69. };
    70.  
    71. zingchart.render({
    72. id: 'myChart',
    73. data: chartConfig,
    74. height: 400,
    75. width: '100%'
    76. });
    77. </script>
    78. </body>
    79.  
    80. </html>
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7. <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
    8.  
    9. <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    10. </head>
    11.  
    12. <body>
    13. <div id='myChart'></div>
    14. </body>
    15.  
    16. </html>
    1.  
    1. let chartConfig = {
    2. type: 'bar',
    3. plot: {
    4. valueBox: {
    5. alpha: 0.7,
    6. borderRadius: 3,
    7. fontFamily: 'Roboto',
    8. fontSize: 12,
    9. fontWeight: 'bold',
    10. padding: '5 8',
    11. shadow: false,
    12. textAlpha: 1
    13. },
    14. tooltip: {
    15. visible: false
    16. }
    17. },
    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: '#E3F2FD #3F51B5',
    30. valueBox: {
    31. backgroundColor: '#FCE4EC #C2185B',
    32. fontColor: '#3F51B5'
    33. }
    34. },
    35. {
    36. values: [
    37. [5.5, 35],
    38. [6, 42],
    39. [6.5, 67],
    40. [7, 89],
    41. [7.5, 25],
    42. [8, 34],
    43. [8.5, 67],
    44. [9, 85]
    45. ],
    46. backgroundColor: '#E0F7FA #009688',
    47. valueBox: {
    48. backgroundColor: '#F9FBE7 #AFB42B',
    49. fontColor: '#009688'
    50. }
    51. }
    52. ]
    53. };
    54.  
    55. zingchart.render({
    56. id: 'myChart',
    57. data: chartConfig,
    58. height: 400,
    59. width: '100%'
    60. });