• 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. mediaRules: [{
    57. maxWidth: 400,
    58. backgroundColor: 'blue'
    59. }]
    60. }
    61. },
    62. series: [{
    63. values: [99, 97, 97, 100],
    64. text: 'Apple'
    65. },
    66. {
    67. values: [64, 58, 51, 51],
    68. text: 'Microsoft'
    69. },
    70. {
    71. values: [58, 52, 63, 72],
    72. text: 'Amazon'
    73. }
    74. ]
    75. }
    76.  
    77. zingchart.render({
    78. id: 'myChart',
    79. data: chartConfig,
    80. height: '50%',
    81. width: '100%',
    82. modules: 'toolbar3d'
    83. });
    84. </script>
    85. </body>
    86.  
    87. </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. mediaRules: [{
    24. maxWidth: 400,
    25. backgroundColor: 'blue'
    26. }]
    27. }
    28. },
    29. series: [{
    30. values: [99, 97, 97, 100],
    31. text: 'Apple'
    32. },
    33. {
    34. values: [64, 58, 51, 51],
    35. text: 'Microsoft'
    36. },
    37. {
    38. values: [58, 52, 63, 72],
    39. text: 'Amazon'
    40. }
    41. ]
    42. }
    43.  
    44. zingchart.render({
    45. id: 'myChart',
    46. data: chartConfig,
    47. height: '50%',
    48. width: '100%',
    49. modules: 'toolbar3d'
    50. });