• 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. <script nonce="undefined" src="https://cdn.zingchart.com/modules/zingchart-violin.min.js"></script>
    10.  
    11. <style>
    12. html,
    13. body,
    14. #myChart {
    15. height: 100%;
    16. width: 100%;
    17. }
    18. </style>
    19. </head>
    20.  
    21. <body>
    22. <div id='myChart'></div>
    23. <script>
    24. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    25. let chartConfig = {
    26. type: 'bar',
    27. plot: {
    28. bottomState: {
    29. backgroundColor: 'red',
    30. offsetX: '10px',
    31. offsetY: '10px',
    32. },
    33. },
    34. series: [{
    35. values: [28, 19, 30, 35, 46, 36]
    36. }, {
    37. values: [11, 7, 14, 11, 24, 22]
    38. }, {
    39. values: [18, 25, 35, 16, 31, 18]
    40. }]
    41. };
    42.  
    43. zingchart.render({
    44. id: 'myChart',
    45. data: chartConfig,
    46. height: '100%',
    47. width: '100%'
    48. });
    49. </script>
    50. </body>
    51.  
    52. </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. <script src="https://cdn.zingchart.com/modules/zingchart-violin.min.js"></script>
    10.  
    11. </head>
    12.  
    13. <body>
    14. <div id='myChart'></div>
    15. </body>
    16.  
    17. </html>
    1. html,
    2. body,
    3. #myChart {
    4. height: 100%;
    5. width: 100%;
    6. }
    1. let chartConfig = {
    2. type: 'bar',
    3. plot: {
    4. bottomState: {
    5. backgroundColor: 'red',
    6. offsetX: '10px',
    7. offsetY: '10px',
    8. },
    9. },
    10. series: [{
    11. values: [28, 19, 30, 35, 46, 36]
    12. }, {
    13. values: [11, 7, 14, 11, 24, 22]
    14. }, {
    15. values: [18, 25, 35, 16, 31, 18]
    16. }]
    17. };
    18.  
    19. zingchart.render({
    20. id: 'myChart',
    21. data: chartConfig,
    22. height: '100%',
    23. width: '100%'
    24. });