• 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": "area",
    18. "plot": {
    19. "error": {
    20. "size": "15px",
    21. "line-width": 1,
    22. "line-segment-size": 3,
    23. "line-gap-size": 3
    24. },
    25. "aspect": "spline",
    26. "stacked": true,
    27. "alpha-area": 0.7,
    28. "marker": {
    29. "type": "square",
    30. "size": 3,
    31. "background-color": "black",
    32. "border-color": "none"
    33. }
    34. },
    35. "scale-x": {
    36. "offset-start": 15,
    37. "offset-end": 15
    38. },
    39. "scale-y": {
    40. "values": "0:200:25",
    41. "guide": {
    42. "line-style": "solid"
    43. }
    44. },
    45. "series": [{
    46. "values": [15, 34, 15, 16, 31, 35, 59, 121],
    47. "line-color": "#006600",
    48. "background-color": "#006600",
    49. "errors": [
    50. [14, 10.1],
    51. [12, 15],
    52. [15.1, 9],
    53. [9.3, 8.3],
    54. [14.1, 14],
    55. [11.2, 12.1],
    56. [13.2, 13],
    57. [14, 15.1],
    58. ]
    59. },
    60. {
    61. "values": [30, 34, 35, 61, 91, 35, 35, 59],
    62. "line-color": "#00b300",
    63. "background-color": "#00b300",
    64. "errors": [
    65. [11, 9.9],
    66. [15.1, 15],
    67. [17, 15.3],
    68. [15.2, 14],
    69. [16, 15.5],
    70. [14.3, 11],
    71. [13.5, 14.1],
    72. [12.5, 13.6],
    73. ]
    74. }
    75. ]
    76. };
    77.  
    78. zingchart.render({
    79. id: 'myChart',
    80. data: myConfig,
    81. height: 400,
    82. width: "100%"
    83. });
    84. </script>
    85. </body>
    86.  
    87. </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": "area",
    3. "plot": {
    4. "error": {
    5. "size": "15px",
    6. "line-width": 1,
    7. "line-segment-size": 3,
    8. "line-gap-size": 3
    9. },
    10. "aspect": "spline",
    11. "stacked": true,
    12. "alpha-area": 0.7,
    13. "marker": {
    14. "type": "square",
    15. "size": 3,
    16. "background-color": "black",
    17. "border-color": "none"
    18. }
    19. },
    20. "scale-x": {
    21. "offset-start": 15,
    22. "offset-end": 15
    23. },
    24. "scale-y": {
    25. "values": "0:200:25",
    26. "guide": {
    27. "line-style": "solid"
    28. }
    29. },
    30. "series": [{
    31. "values": [15, 34, 15, 16, 31, 35, 59, 121],
    32. "line-color": "#006600",
    33. "background-color": "#006600",
    34. "errors": [
    35. [14, 10.1],
    36. [12, 15],
    37. [15.1, 9],
    38. [9.3, 8.3],
    39. [14.1, 14],
    40. [11.2, 12.1],
    41. [13.2, 13],
    42. [14, 15.1],
    43. ]
    44. },
    45. {
    46. "values": [30, 34, 35, 61, 91, 35, 35, 59],
    47. "line-color": "#00b300",
    48. "background-color": "#00b300",
    49. "errors": [
    50. [11, 9.9],
    51. [15.1, 15],
    52. [17, 15.3],
    53. [15.2, 14],
    54. [16, 15.5],
    55. [14.3, 11],
    56. [13.5, 14.1],
    57. [12.5, 13.6],
    58. ]
    59. }
    60. ]
    61. };
    62.  
    63. zingchart.render({
    64. id: 'myChart',
    65. data: myConfig,
    66. height: 400,
    67. width: "100%"
    68. });