• 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. 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. </style>
    24. </head>
    25.  
    26. <body>
    27. <div id="myChart"></div>
    28. <script>
    29. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    30. var myConfig = {
    31. graphset: [{
    32. type: 'bar',
    33. palette: ["#f44336", "#8bc34a", "#03a9f4"],
    34. title: {
    35. text: "Gitlab Commits",
    36. adjustLayout: true
    37. },
    38. scaleX: {
    39. labels: [2013, 2014, 2015, 2016],
    40. label: {
    41. text: "All-time"
    42. }
    43. },
    44. crosshairX: {
    45. lineWidth: "100%",
    46. lineColor: '#ccc',
    47. alpha: 0.5,
    48. plotLabel: {
    49. visible: false
    50. }
    51. },
    52. scaleY: {
    53. label: {
    54. text: "Commits per Repo"
    55. }
    56. },
    57. plotarea: {
    58. margin: "dynamic"
    59. },
    60. plot: {
    61. lineWidth: 1
    62. },
    63. legend: {
    64. adjustLayout: true,
    65. verticalAlign: "middle"
    66. },
    67. series: [{
    68. values: [930, 990, 820, 840],
    69. text: "Analytics UI"
    70. },
    71. {
    72. values: [2100, 1310, 1709, 1650],
    73. text: "Server Cluster"
    74. },
    75. {
    76. values: [481, 714, 665, 504],
    77. text: "App Logic"
    78. }
    79. ]
    80. }]
    81. };
    82.  
    83. zingchart.render({
    84. id: 'myChart',
    85. data: myConfig,
    86. height: '100%',
    87. width: '100%'
    88. });
    89. </script>
    90. </body>
    91.  
    92. </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. 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. graphset: [{
    3. type: 'bar',
    4. palette: ["#f44336", "#8bc34a", "#03a9f4"],
    5. title: {
    6. text: "Gitlab Commits",
    7. adjustLayout: true
    8. },
    9. scaleX: {
    10. labels: [2013, 2014, 2015, 2016],
    11. label: {
    12. text: "All-time"
    13. }
    14. },
    15. crosshairX: {
    16. lineWidth: "100%",
    17. lineColor: '#ccc',
    18. alpha: 0.5,
    19. plotLabel: {
    20. visible: false
    21. }
    22. },
    23. scaleY: {
    24. label: {
    25. text: "Commits per Repo"
    26. }
    27. },
    28. plotarea: {
    29. margin: "dynamic"
    30. },
    31. plot: {
    32. lineWidth: 1
    33. },
    34. legend: {
    35. adjustLayout: true,
    36. verticalAlign: "middle"
    37. },
    38. series: [{
    39. values: [930, 990, 820, 840],
    40. text: "Analytics UI"
    41. },
    42. {
    43. values: [2100, 1310, 1709, 1650],
    44. text: "Server Cluster"
    45. },
    46. {
    47. values: [481, 714, 665, 504],
    48. text: "App Logic"
    49. }
    50. ]
    51. }]
    52. };
    53.  
    54. zingchart.render({
    55. id: 'myChart',
    56. data: myConfig,
    57. height: '100%',
    58. width: '100%'
    59. });