• 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. zingchart.loadModules('toolbar3d');
    24.  
    25. let chartConfig = {
    26. type: 'bar3d',
    27. legend: {},
    28. plotarea: {
    29. margin: 100
    30. },
    31. tooltip: {},
    32. plot: {
    33. stacked: false,
    34. valueBox: {
    35. visible: 0
    36. },
    37. mode: 'normal',
    38. hoverState: {
    39. visible: false
    40. }
    41. },
    42. options: {
    43. trigger: {
    44. bottomState: {
    45. backgroundColor: 'red',
    46. offsetX: '10px',
    47. offsetY: '10px',
    48. },
    49. }
    50. },
    51. series: [{
    52. values: [99, 97, 97, 100],
    53. text: 'Apple'
    54. }, {
    55. values: [64, 58, 51, 51],
    56. text: 'Microsoft'
    57. }, {
    58. values: [58, 52, 63, 72],
    59. text: 'Amazon'
    60. }]
    61. };
    62.  
    63. zingchart.render({
    64. id: 'myChart',
    65. data: chartConfig,
    66. height: '100%',
    67. width: '100%',
    68. modules: 'toolbar3d'
    69. });
    70. </script>
    71. </body>
    72.  
    73. </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. 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. trigger: {
    22. bottomState: {
    23. backgroundColor: 'red',
    24. offsetX: '10px',
    25. offsetY: '10px',
    26. },
    27. }
    28. },
    29. series: [{
    30. values: [99, 97, 97, 100],
    31. text: 'Apple'
    32. }, {
    33. values: [64, 58, 51, 51],
    34. text: 'Microsoft'
    35. }, {
    36. values: [58, 52, 63, 72],
    37. text: 'Amazon'
    38. }]
    39. };
    40.  
    41. zingchart.render({
    42. id: 'myChart',
    43. data: chartConfig,
    44. height: '100%',
    45. width: '100%',
    46. modules: 'toolbar3d'
    47. });