• 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>
    10. html,
    11. body,
    12. #myChart {
    13. height: 100%;
    14. width: 100%;
    15. }
    16. </style>
    17. </head>
    18.  
    19. <body>
    20. <div id='myChart'></div>
    21. <script>
    22. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    23. var myConfig = {
    24. "type": "mixed",
    25. "title": {
    26. "text": "Area/Stacked Bar Mixed Chart"
    27. },
    28. "scale-x": {
    29. "labels": ["Jan", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "Dec"],
    30. "offset": 0
    31. },
    32. "scale-y": {
    33. "values": "0:90:30",
    34. "guide": {
    35. "visible": false
    36. }
    37. },
    38. "series": [{
    39. "type": "area",
    40. "values": [
    41. 15, 10, 16, 12, 13, 19, 11, 21, 15, 29,
    42. 21, 19, 23, 24, 17, 23, 26, 31, 29, 34,
    43. 19, 54, 23, 44, 33, 34, 30, 47, 61, 31,
    44. 59, 45, 69, 54, 70, 65, 78, 61, 76, 78,
    45. 60, 67, 87, 71, 80, 54, 78, 89, 57, 91
    46. ],
    47. "background-color": "gray",
    48. "line-color": "none",
    49. "marker": {
    50. "type": "none"
    51. }
    52. },
    53. {
    54. "type": "bar",
    55. "values": [
    56. 2.1, 1.9, 2.3, 2.4, 1.7, 2.3, 7, 3.1, 2.9, 3.4,
    57. 1.5, 1.0, 1.6, 1.2, 11, 1.9, 14, 2.1, 1.5, 2.9,
    58. 5.9, 4.5, 6.9, 5.4, 7.0, 6.5, 7.8, 6.1, 7.6, 9.1,
    59. 11, 13.1, 21.1, 33, 41, 23.5, 34, 30, 13.7, 51.2,
    60. 41.2, 23.5, 34.2, 33.1, 32, 21, 19.7, 34, 7, 30.1
    61. ],
    62. "stacked": true,
    63. "stack": 1,
    64. "bar-width": "70%",
    65. "background-color": "#003300"
    66. },
    67. {
    68. "type": "bar",
    69. "values": [
    70. 1.5, 1.0, 1.6, 1.2, 1.3, 1.9, 1.1, 2.1, 1.5, 2.9,
    71. 2.1, 1.9, 2.3, 2.4, 1.7, 2.3, 2.6, 3.1, 2.9, 3.4,
    72. 1.9, 5.4, 2.3, 4.4, 3.3, 3.4, 3.0, 4.7, 6.1, 3.1,
    73. 5.9, 4.5, 6.9, 5.4, 7.0, 6.5, 7.8, 6.1, 7.6, 7.8,
    74. 6.0, 6.7, 8.7, 7.1, 8.0, 5.4, 7.8, 8.9, 5.7, 9.1
    75. ],
    76. "stacked": true,
    77. "stack": 1,
    78. "bar-width": "70%",
    79. "background-color": "#009900"
    80. }
    81. ]
    82. };
    83.  
    84. zingchart.render({
    85. id: 'myChart',
    86. data: myConfig,
    87. height: "100%",
    88. width: "100%"
    89. });
    90. </script>
    91. </body>
    92.  
    93. </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. html,
    2. body,
    3. #myChart {
    4. height: 100%;
    5. width: 100%;
    6. }
    1. var myConfig = {
    2. "type": "mixed",
    3. "title": {
    4. "text": "Area/Stacked Bar Mixed Chart"
    5. },
    6. "scale-x": {
    7. "labels": ["Jan", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "Dec"],
    8. "offset": 0
    9. },
    10. "scale-y": {
    11. "values": "0:90:30",
    12. "guide": {
    13. "visible": false
    14. }
    15. },
    16. "series": [{
    17. "type": "area",
    18. "values": [
    19. 15, 10, 16, 12, 13, 19, 11, 21, 15, 29,
    20. 21, 19, 23, 24, 17, 23, 26, 31, 29, 34,
    21. 19, 54, 23, 44, 33, 34, 30, 47, 61, 31,
    22. 59, 45, 69, 54, 70, 65, 78, 61, 76, 78,
    23. 60, 67, 87, 71, 80, 54, 78, 89, 57, 91
    24. ],
    25. "background-color": "gray",
    26. "line-color": "none",
    27. "marker": {
    28. "type": "none"
    29. }
    30. },
    31. {
    32. "type": "bar",
    33. "values": [
    34. 2.1, 1.9, 2.3, 2.4, 1.7, 2.3, 7, 3.1, 2.9, 3.4,
    35. 1.5, 1.0, 1.6, 1.2, 11, 1.9, 14, 2.1, 1.5, 2.9,
    36. 5.9, 4.5, 6.9, 5.4, 7.0, 6.5, 7.8, 6.1, 7.6, 9.1,
    37. 11, 13.1, 21.1, 33, 41, 23.5, 34, 30, 13.7, 51.2,
    38. 41.2, 23.5, 34.2, 33.1, 32, 21, 19.7, 34, 7, 30.1
    39. ],
    40. "stacked": true,
    41. "stack": 1,
    42. "bar-width": "70%",
    43. "background-color": "#003300"
    44. },
    45. {
    46. "type": "bar",
    47. "values": [
    48. 1.5, 1.0, 1.6, 1.2, 1.3, 1.9, 1.1, 2.1, 1.5, 2.9,
    49. 2.1, 1.9, 2.3, 2.4, 1.7, 2.3, 2.6, 3.1, 2.9, 3.4,
    50. 1.9, 5.4, 2.3, 4.4, 3.3, 3.4, 3.0, 4.7, 6.1, 3.1,
    51. 5.9, 4.5, 6.9, 5.4, 7.0, 6.5, 7.8, 6.1, 7.6, 7.8,
    52. 6.0, 6.7, 8.7, 7.1, 8.0, 5.4, 7.8, 8.9, 5.7, 9.1
    53. ],
    54. "stacked": true,
    55. "stack": 1,
    56. "bar-width": "70%",
    57. "background-color": "#009900"
    58. }
    59. ]
    60. };
    61.  
    62. zingchart.render({
    63. id: 'myChart',
    64. data: myConfig,
    65. height: "100%",
    66. width: "100%"
    67. });