• Edit
  • Download
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7. <link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
    8.  
    9. <script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
    10. <style></style>
    11. </head>
    12.  
    13. <body>
    14. <div id='myChart'></div>
    15. <script>
    16. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    17. var myConfig = {
    18. type: "bar",
    19. borderRadius: "5px",
    20. title: {
    21. text: "This Is A Header",
    22. fontFamily: "Roboto",
    23. fontWeight: "bold",
    24. align: "left",
    25. fontSize: "22px",
    26. color: "black"
    27. //adjustLayout:true
    28. },
    29. tooltip: {
    30. fontSize: "18px",
    31. fontFamily: "Roboto",
    32. color: "white",
    33. borderRadius: "5px",
    34. fontWeight: "bold",
    35. },
    36. scaleY: {
    37. values: "0:100:20",
    38. guide: {
    39. visible: false
    40. },
    41. item: {
    42. fontFamily: "Roboto",
    43. fontSize: "16px",
    44. fontWeight: "bold",
    45. color: "black"
    46. },
    47. label: {
    48. text: "Label-Y",
    49. fontFamily: "Roboto",
    50. fontSize: "22px",
    51. fontWeight: "bold",
    52. color: "black"
    53. }
    54. },
    55. scaleX: {
    56. label: {
    57. text: "Label-X",
    58. fontSize: "22px",
    59. fontWeight: "bold",
    60. fontFamily: "Roboto",
    61. color: "black"
    62. },
    63. item: {
    64. fontFamily: "Roboto",
    65. fontSize: "16px",
    66. fontWeight: "bold",
    67. color: "black"
    68. }
    69. },
    70.  
    71. plotarea: {
    72. //margin: dynamic
    73. marginLeft: 'dynamic'
    74. },
    75. series: [{
    76. values: [35, 42, 67, 89, 25, 34, 67, 85]
    77. }
    78.  
    79. ]
    80. };
    81.  
    82. zingchart.render({
    83. id: 'myChart',
    84. data: myConfig,
    85. height: 400,
    86. width: 600
    87. });
    88. </script>
    89. </body>
    90.  
    91. </html>
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7. <link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
    8.  
    9. <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    10. </head>
    11.  
    12. <body>
    13. <div id='myChart'></div>
    14. </body>
    15.  
    16. </html>
    1.  
    1. var myConfig = {
    2. type: "bar",
    3. borderRadius: "5px",
    4. title: {
    5. text: "This Is A Header",
    6. fontFamily: "Roboto",
    7. fontWeight: "bold",
    8. align: "left",
    9. fontSize: "22px",
    10. color: "black"
    11. //adjustLayout:true
    12. },
    13. tooltip: {
    14. fontSize: "18px",
    15. fontFamily: "Roboto",
    16. color: "white",
    17. borderRadius: "5px",
    18. fontWeight: "bold",
    19. },
    20. scaleY: {
    21. values: "0:100:20",
    22. guide: {
    23. visible: false
    24. },
    25. item: {
    26. fontFamily: "Roboto",
    27. fontSize: "16px",
    28. fontWeight: "bold",
    29. color: "black"
    30. },
    31. label: {
    32. text: "Label-Y",
    33. fontFamily: "Roboto",
    34. fontSize: "22px",
    35. fontWeight: "bold",
    36. color: "black"
    37. }
    38. },
    39. scaleX: {
    40. label: {
    41. text: "Label-X",
    42. fontSize: "22px",
    43. fontWeight: "bold",
    44. fontFamily: "Roboto",
    45. color: "black"
    46. },
    47. item: {
    48. fontFamily: "Roboto",
    49. fontSize: "16px",
    50. fontWeight: "bold",
    51. color: "black"
    52. }
    53. },
    54.  
    55. plotarea: {
    56. //margin: dynamic
    57. marginLeft: 'dynamic'
    58. },
    59. series: [{
    60. values: [35, 42, 67, 89, 25, 34, 67, 85]
    61. }
    62.  
    63. ]
    64. };
    65.  
    66. zingchart.render({
    67. id: 'myChart',
    68. data: myConfig,
    69. height: 400,
    70. width: 600
    71. });