• 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. "scale-x": {
    19. "values": "0:35:7",
    20. "format": "Day %v"
    21. },
    22. "scale-y": {
    23. "values": "0:100:20",
    24. "format": "%v%",
    25. "guide": {
    26. "line-style": "dashdot"
    27. }
    28. },
    29. "plot": {
    30. "contour-on-top": false,
    31. "marker": {
    32. "visible": false
    33. }
    34. },
    35. "series": [{
    36. "values": [
    37. [0, 20],
    38. [3, 40],
    39. [9, 25],
    40. [11, 50],
    41. [30, 15],
    42. [31, 45],
    43. [34, 93],
    44. [35, 34]
    45. ],
    46. "line-color": "#3366ff",
    47. "background-color": "#3366ff"
    48. },
    49. {
    50. "values": [
    51. [0, 5],
    52. [7, 30],
    53. [7, 65],
    54. [16, 18],
    55. [19, 81],
    56. [31, 50],
    57. [33, 28],
    58. [35, 33]
    59. ],
    60. "line-color": "#00cc99",
    61. "background-color": "#00cc99"
    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": "area",
    3. "scale-x": {
    4. "values": "0:35:7",
    5. "format": "Day %v"
    6. },
    7. "scale-y": {
    8. "values": "0:100:20",
    9. "format": "%v%",
    10. "guide": {
    11. "line-style": "dashdot"
    12. }
    13. },
    14. "plot": {
    15. "contour-on-top": false,
    16. "marker": {
    17. "visible": false
    18. }
    19. },
    20. "series": [{
    21. "values": [
    22. [0, 20],
    23. [3, 40],
    24. [9, 25],
    25. [11, 50],
    26. [30, 15],
    27. [31, 45],
    28. [34, 93],
    29. [35, 34]
    30. ],
    31. "line-color": "#3366ff",
    32. "background-color": "#3366ff"
    33. },
    34. {
    35. "values": [
    36. [0, 5],
    37. [7, 30],
    38. [7, 65],
    39. [16, 18],
    40. [19, 81],
    41. [31, 50],
    42. [33, 28],
    43. [35, 33]
    44. ],
    45. "line-color": "#00cc99",
    46. "background-color": "#00cc99"
    47. }
    48. ]
    49. };
    50.  
    51. zingchart.render({
    52. id: 'myChart',
    53. data: myConfig,
    54. height: 400,
    55. width: "100%"
    56. });