• 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. var myConfig = {
    17. "type": "bar",
    18. "plot": {
    19. "value-box": {
    20. "text": "%v<br>±%node-error-plus",
    21. "font-family": "Times New Roman",
    22. "font-color": "black",
    23. "font-weight": "normal",
    24. "font-size": 12,
    25. "placement": "top",
    26. "offset-y": "-20px",
    27. },
    28. "errors": [
    29. [5],
    30. [4],
    31. [5],
    32. [6],
    33. [4],
    34. ],
    35. "error": {
    36. "line-color": "#00aaff",
    37. "line-width": 1,
    38. "hover-state": {
    39. "visible": false
    40. }
    41. },
    42. "bar-space": 0,
    43. "bars-space-left": "20%",
    44. "bars-space-right": "20%",
    45. "hover-state": {
    46. "visible": false
    47. }
    48. },
    49. "scale-y": {
    50. "values": "0:80:20",
    51. "guide": {
    52. "line-style": "dotted"
    53. }
    54. },
    55. "series": [{
    56. "values": [35, 40, 59, 65, 33],
    57. "background-color": "#003344"
    58. },
    59. {
    60. "values": [30, 31, 50, 55, 29],
    61. "background-color": "#005c99"
    62. }
    63. ]
    64. };
    65.  
    66. zingchart.render({
    67. id: 'myChart',
    68. data: myConfig,
    69. height: 400,
    70. width: "100%"
    71. });
    72. </script>
    73. </body>
    74.  
    75. </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. var myConfig = {
    2. "type": "bar",
    3. "plot": {
    4. "value-box": {
    5. "text": "%v<br>±%node-error-plus",
    6. "font-family": "Times New Roman",
    7. "font-color": "black",
    8. "font-weight": "normal",
    9. "font-size": 12,
    10. "placement": "top",
    11. "offset-y": "-20px",
    12. },
    13. "errors": [
    14. [5],
    15. [4],
    16. [5],
    17. [6],
    18. [4],
    19. ],
    20. "error": {
    21. "line-color": "#00aaff",
    22. "line-width": 1,
    23. "hover-state": {
    24. "visible": false
    25. }
    26. },
    27. "bar-space": 0,
    28. "bars-space-left": "20%",
    29. "bars-space-right": "20%",
    30. "hover-state": {
    31. "visible": false
    32. }
    33. },
    34. "scale-y": {
    35. "values": "0:80:20",
    36. "guide": {
    37. "line-style": "dotted"
    38. }
    39. },
    40. "series": [{
    41. "values": [35, 40, 59, 65, 33],
    42. "background-color": "#003344"
    43. },
    44. {
    45. "values": [30, 31, 50, 55, 29],
    46. "background-color": "#005c99"
    47. }
    48. ]
    49. };
    50.  
    51. zingchart.render({
    52. id: 'myChart',
    53. data: myConfig,
    54. height: 400,
    55. width: "100%"
    56. });