• 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/2.5.2/zingchart.min.js"></script>
    9. <style>
    10. html,
    11. body {
    12. height: 100%;
    13. width: 100%;
    14. margin: 0;
    15. padding: 0;
    16. }
    17.  
    18. #myChart {
    19. height: 100%;
    20. width: 100%;
    21. min-height: 150px;
    22. }
    23.  
    24. zing-grid[loading] {
    25. height: 400px;
    26. }
    27. </style>
    28. </head>
    29.  
    30. <body>
    31. <div id='myChart'></div>
    32. <script>
    33. var myConfig = {
    34. type: "bar",
    35. plot: {
    36. selectedState: {
    37. backgroundColor: 'green'
    38. },
    39. },
    40. series: [{
    41. values: [35, 25, 15, 41, 2, 45, 14, 65, 40]
    42. },
    43. {
    44. values: [89, 40, 56, 78, 15, 10, 40, 45, 5]
    45. }
    46. ]
    47. };
    48.  
    49. // Load the selection-tool and render the charts once its loaded
    50. zingchart.loadModules('selection-tool', function() {
    51. zingchart.render({
    52. id: 'myChart',
    53. data: myConfig,
    54. height: 400,
    55. width: '100%',
    56. modules: 'selection-tool'
    57. });
    58. });
    59. </script>
    60. </body>
    61.  
    62. </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/2.5.2/zingchart.min.js"></script>
    9. </head>
    10.  
    11. <body>
    12. <div id='myChart'></div>
    13. </body>
    14.  
    15. </html>
    1. html,
    2. body {
    3. height: 100%;
    4. width: 100%;
    5. margin: 0;
    6. padding: 0;
    7. }
    8.  
    9. #myChart {
    10. height: 100%;
    11. width: 100%;
    12. min-height: 150px;
    13. }
    1. var myConfig = {
    2. type: "bar",
    3. plot: {
    4. selectedState: {
    5. backgroundColor: 'green'
    6. },
    7. },
    8. series: [{
    9. values: [35, 25, 15, 41, 2, 45, 14, 65, 40]
    10. },
    11. {
    12. values: [89, 40, 56, 78, 15, 10, 40, 45, 5]
    13. }
    14. ]
    15. };
    16.  
    17. // Load the selection-tool and render the charts once its loaded
    18. zingchart.loadModules('selection-tool', function() {
    19. zingchart.render({
    20. id: 'myChart',
    21. data: myConfig,
    22. height: 400,
    23. width: '100%',
    24. modules: 'selection-tool'
    25. });
    26. });