• 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. hoverState: {
    45. backgroundColor: 'red',
    46. fontColor: 'blue',
    47. },
    48. }
    49. },
    50. series: [{
    51. values: [99, 97, 97, 100],
    52. text: 'Apple'
    53. }, {
    54. values: [64, 58, 51, 51],
    55. text: 'Microsoft'
    56. }, {
    57. values: [58, 52, 63, 72],
    58. text: 'Amazon'
    59. }]
    60. };
    61.  
    62. zingchart.render({
    63. id: 'myChart',
    64. data: chartConfig,
    65. height: '100%',
    66. width: '100%',
    67. modules: 'toolbar3d'
    68. });
    69. </script>
    70. </body>
    71.  
    72. </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. hoverState: {
    23. backgroundColor: 'red',
    24. fontColor: 'blue',
    25. },
    26. }
    27. },
    28. series: [{
    29. values: [99, 97, 97, 100],
    30. text: 'Apple'
    31. }, {
    32. values: [64, 58, 51, 51],
    33. text: 'Microsoft'
    34. }, {
    35. values: [58, 52, 63, 72],
    36. text: 'Amazon'
    37. }]
    38. };
    39.  
    40. zingchart.render({
    41. id: 'myChart',
    42. data: chartConfig,
    43. height: '100%',
    44. width: '100%',
    45. modules: 'toolbar3d'
    46. });