• 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": "vbar3d",
    25. "fill-type": "radial",
    26. "3d-aspect": {
    27. "depth": 120
    28. },
    29. "scale-x": {
    30. "item": {
    31. "color": "#313133"
    32. },
    33. "values": ["9", "8", "7", "Below 7"],
    34. "background-color": "none",
    35. "guide": {
    36. "visible": 0
    37. }
    38. },
    39. "scale-y": {
    40. "item": {
    41. "color": "#313133"
    42. },
    43. "values": "0:200:50",
    44. "background-color": "none",
    45. "guide": {
    46. "visible": 0
    47. }
    48. },
    49. "plot": {
    50. "aspect": "cylinder",
    51. "bars-overlap": "100%",
    52. "mode": "normal"
    53. },
    54. "series": [{
    55. "values": [200, 200, 200, 200],
    56. "alpha": 0.25,
    57. "background-color": "#ddd",
    58. "max-trackers": 0
    59. },
    60. {
    61. "values": [150, 110, 94, 45],
    62. "background-image": "PATTERN_CUSTOM",
    63. "alpha": 0.6,
    64. "styles": [{
    65. "background-color": "#65A43E"
    66. },
    67. {
    68. "background-color": "#E6DC2F"
    69. },
    70. {
    71. "background-color": "#E49D36"
    72. },
    73. {
    74. "background-color": "#EC1C24"
    75. }
    76. ]
    77. },
    78. {
    79. "values": [1, 1, 1, 1],
    80. "offset-values": [100, 60, 80, 120],
    81. "alpha": 0.5,
    82. "border-width": 5,
    83. "max-trackers": 0,
    84. "facets": {
    85. "top": {
    86. "background-color": "none",
    87. "alpha": 1
    88. },
    89. "bottom": {
    90. "alpha": 0
    91. },
    92. "front": {
    93. "alpha": 1
    94. }
    95. },
    96. "styles": [{
    97. "background-color": "#65A43E",
    98. "border-color": "#65A43E"
    99. },
    100. {
    101. "background-color": "#E6DC2F",
    102. "border-color": "#E6DC2F"
    103. },
    104. {
    105. "background-color": "#E49D36",
    106. "border-color": "#E49D36"
    107. },
    108. {
    109. "background-color": "#EC1C24",
    110. "border-color": "#EC1C24"
    111. }
    112. ]
    113. }
    114. ]
    115. };
    116.  
    117. zingchart.render({
    118. id: 'myChart',
    119. data: myConfig,
    120. height: '100%',
    121. width: '100%'
    122. });
    123. </script>
    124. </body>
    125.  
    126. </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": "vbar3d",
    3. "fill-type": "radial",
    4. "3d-aspect": {
    5. "depth": 120
    6. },
    7. "scale-x": {
    8. "item": {
    9. "color": "#313133"
    10. },
    11. "values": ["9", "8", "7", "Below 7"],
    12. "background-color": "none",
    13. "guide": {
    14. "visible": 0
    15. }
    16. },
    17. "scale-y": {
    18. "item": {
    19. "color": "#313133"
    20. },
    21. "values": "0:200:50",
    22. "background-color": "none",
    23. "guide": {
    24. "visible": 0
    25. }
    26. },
    27. "plot": {
    28. "aspect": "cylinder",
    29. "bars-overlap": "100%",
    30. "mode": "normal"
    31. },
    32. "series": [{
    33. "values": [200, 200, 200, 200],
    34. "alpha": 0.25,
    35. "background-color": "#ddd",
    36. "max-trackers": 0
    37. },
    38. {
    39. "values": [150, 110, 94, 45],
    40. "background-image": "PATTERN_CUSTOM",
    41. "alpha": 0.6,
    42. "styles": [{
    43. "background-color": "#65A43E"
    44. },
    45. {
    46. "background-color": "#E6DC2F"
    47. },
    48. {
    49. "background-color": "#E49D36"
    50. },
    51. {
    52. "background-color": "#EC1C24"
    53. }
    54. ]
    55. },
    56. {
    57. "values": [1, 1, 1, 1],
    58. "offset-values": [100, 60, 80, 120],
    59. "alpha": 0.5,
    60. "border-width": 5,
    61. "max-trackers": 0,
    62. "facets": {
    63. "top": {
    64. "background-color": "none",
    65. "alpha": 1
    66. },
    67. "bottom": {
    68. "alpha": 0
    69. },
    70. "front": {
    71. "alpha": 1
    72. }
    73. },
    74. "styles": [{
    75. "background-color": "#65A43E",
    76. "border-color": "#65A43E"
    77. },
    78. {
    79. "background-color": "#E6DC2F",
    80. "border-color": "#E6DC2F"
    81. },
    82. {
    83. "background-color": "#E49D36",
    84. "border-color": "#E49D36"
    85. },
    86. {
    87. "background-color": "#EC1C24",
    88. "border-color": "#EC1C24"
    89. }
    90. ]
    91. }
    92. ]
    93. };
    94.  
    95. zingchart.render({
    96. id: 'myChart',
    97. data: myConfig,
    98. height: '100%',
    99. width: '100%'
    100. });