• 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></style>
    10. </head>
    11.  
    12. <body>
    13. <div id='myChart'></div>
    14. <script>
    15. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    16. zingchart.loadModules('toolbar3d');
    17.  
    18. let chartConfig = {
    19. type: 'bar3d',
    20. legend: {},
    21. plotarea: {
    22. margin: 100
    23. },
    24. tooltip: {},
    25. plot: {
    26. stacked: false,
    27. valueBox: {
    28. visible: 0
    29. },
    30. mode: 'normal',
    31. hoverState: {
    32. visible: false
    33. }
    34. },
    35. options: {
    36. trigger: {
    37. backgroundColor: 'red',
    38. hoverState: {
    39. backgroundColor: 'blue'
    40. }
    41. },
    42. },
    43. series: [{
    44. values: [99, 97, 97, 100],
    45. text: 'Apple'
    46. },
    47. {
    48. values: [64, 58, 51, 51],
    49. text: 'Microsoft'
    50. },
    51. {
    52. values: [58, 52, 63, 72],
    53. text: 'Amazon'
    54. }
    55. ]
    56. };
    57.  
    58. zingchart.render({
    59. id: 'myChart',
    60. data: chartConfig,
    61. height: 400,
    62. width: 600,
    63. modules: 'toolbar3d'
    64. });
    65. </script>
    66. </body>
    67.  
    68. </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.  
    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. backgroundColor: 'red',
    23. hoverState: {
    24. backgroundColor: 'blue'
    25. }
    26. },
    27. },
    28. series: [{
    29. values: [99, 97, 97, 100],
    30. text: 'Apple'
    31. },
    32. {
    33. values: [64, 58, 51, 51],
    34. text: 'Microsoft'
    35. },
    36. {
    37. values: [58, 52, 63, 72],
    38. text: 'Amazon'
    39. }
    40. ]
    41. };
    42.  
    43. zingchart.render({
    44. id: 'myChart',
    45. data: chartConfig,
    46. height: 400,
    47. width: 600,
    48. modules: 'toolbar3d'
    49. });