• 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. let chartConfig = {
    17. type: 'bar',
    18. plot: {
    19. selectionMode: 'graph', //accepted values 'none' | 'plot' | 'graph' | 'multiple'
    20. groupSelections: true, // When true, selects all nodes at scaleX index as node/group. selectionMode is required.
    21. selectedState: { //required to set styling for selecions
    22. backgroundColor: '#333',
    23. alpha: 0.5
    24. }
    25. },
    26. series: [{
    27. values: [28, 19, 30, 35, 46, 36],
    28. },
    29. {
    30. values: [11, 7, 14, 11, 24, 22],
    31. },
    32. {
    33. values: [18, 25, 35, 16, 31, 18],
    34. }
    35. ]
    36. }
    37.  
    38. zingchart.render({
    39. id: 'myChart',
    40. data: chartConfig,
    41. height: 400,
    42. width: '100%'
    43. });
    44. </script>
    45. </body>
    46.  
    47. </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. let chartConfig = {
    2. type: 'bar',
    3. plot: {
    4. selectionMode: 'graph', //accepted values 'none' | 'plot' | 'graph' | 'multiple'
    5. groupSelections: true, // When true, selects all nodes at scaleX index as node/group. selectionMode is required.
    6. selectedState: { //required to set styling for selecions
    7. backgroundColor: '#333',
    8. alpha: 0.5
    9. }
    10. },
    11. series: [{
    12. values: [28, 19, 30, 35, 46, 36],
    13. },
    14. {
    15. values: [11, 7, 14, 11, 24, 22],
    16. },
    17. {
    18. values: [18, 25, 35, 16, 31, 18],
    19. }
    20. ]
    21. }
    22.  
    23. zingchart.render({
    24. id: 'myChart',
    25. data: chartConfig,
    26. height: 400,
    27. width: '100%'
    28. });