• 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. .zc-html,
    11. .zc-body {
    12. margin: 0;
    13. padding: 0;
    14. width: 100%;
    15. height: 100%;
    16. }
    17.  
    18. .chart--container {
    19. height: 100%;
    20. width: 100%;
    21. min-height: 530px;
    22. }
    23.  
    24. .zc-ref {
    25. display: none;
    26. }
    27. </style>
    28. </head>
    29.  
    30. <body>
    31. <div id='myChart'></div>
    32. <script>
    33. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    34. zingchart.loadModules('toolbar3d');
    35.  
    36. let chartConfig = {
    37. type: 'bar3d',
    38. legend: {},
    39. plotarea: {
    40. margin: 100
    41. },
    42. tooltip: {},
    43. plot: {
    44. stacked: false,
    45. valueBox: {
    46. visible: 0
    47. },
    48. mode: 'normal',
    49. hoverState: {
    50. visible: false
    51. }
    52. },
    53. options: {
    54. mainbox: {
    55. backgroundColor: 'red',
    56. bottomState: {
    57. backgroundColor: 'blue',
    58. offsetX: 10,
    59. offsetY: 10,
    60. }
    61. }
    62. },
    63. series: [{
    64. values: [99, 97, 97, 100],
    65. text: 'Apple'
    66. },
    67. {
    68. values: [64, 58, 51, 51],
    69. text: 'Microsoft'
    70. },
    71. {
    72. values: [58, 52, 63, 72],
    73. text: 'Amazon'
    74. }
    75. ]
    76. }
    77.  
    78. zingchart.render({
    79. id: 'myChart',
    80. data: chartConfig,
    81. height: '50%',
    82. width: '100%',
    83. modules: 'toolbar3d'
    84. });
    85. </script>
    86. </body>
    87.  
    88. </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. .zc-html,
    2. .zc-body {
    3. margin: 0;
    4. padding: 0;
    5. width: 100%;
    6. height: 100%;
    7. }
    8.  
    9. .chart--container {
    10. height: 100%;
    11. width: 100%;
    12. min-height: 530px;
    13. }
    14.  
    15. .zc-ref {
    16. display: none;
    17. }
    1. zingchart.loadModules('toolbar3d');
    2.  
    3. let chartConfig = {
    4. type: 'bar3d',
    5. legend: {},
    6. plotarea: {
    7. margin: 100
    8. },
    9. tooltip: {},
    10. plot: {
    11. stacked: false,
    12. valueBox: {
    13. visible: 0
    14. },
    15. mode: 'normal',
    16. hoverState: {
    17. visible: false
    18. }
    19. },
    20. options: {
    21. mainbox: {
    22. backgroundColor: 'red',
    23. bottomState: {
    24. backgroundColor: 'blue',
    25. offsetX: 10,
    26. offsetY: 10,
    27. }
    28. }
    29. },
    30. series: [{
    31. values: [99, 97, 97, 100],
    32. text: 'Apple'
    33. },
    34. {
    35. values: [64, 58, 51, 51],
    36. text: 'Microsoft'
    37. },
    38. {
    39. values: [58, 52, 63, 72],
    40. text: 'Amazon'
    41. }
    42. ]
    43. }
    44.  
    45. zingchart.render({
    46. id: 'myChart',
    47. data: chartConfig,
    48. height: '50%',
    49. width: '100%',
    50. modules: 'toolbar3d'
    51. });