• 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. mediaRules: [{
    29. maxWidth: 400,
    30. backgroundColor: 'red',
    31. }],
    32. },
    33. series: [{
    34. values: [28, 19, 30, 35, 46, 36]
    35. }, {
    36. values: [11, 7, 14, 11, 24, 22]
    37. }, {
    38. values: [18, 25, 35, 16, 31, 18]
    39. }]
    40. };
    41.  
    42. zingchart.render({
    43. id: 'myChart',
    44. data: chartConfig,
    45. height: '100%',
    46. width: '100%'
    47. });
    48. </script>
    49. </body>
    50.  
    51. </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. mediaRules: [{
    5. maxWidth: 400,
    6. backgroundColor: 'red',
    7. }],
    8. },
    9. series: [{
    10. values: [28, 19, 30, 35, 46, 36]
    11. }, {
    12. values: [11, 7, 14, 11, 24, 22]
    13. }, {
    14. values: [18, 25, 35, 16, 31, 18]
    15. }]
    16. };
    17.  
    18. zingchart.render({
    19. id: 'myChart',
    20. data: chartConfig,
    21. height: '100%',
    22. width: '100%'
    23. });