• 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": "line",
    18. "scale-x": {
    19. "values": "0:100:10"
    20. },
    21. "scale-y": {
    22. "values": "3.1:3.4:0.1",
    23. },
    24. "plot": {
    25. "aspect": "spline",
    26. "tooltip": {
    27. "text": "X: %kt<br>Y: %vt",
    28. "text-align": "center",
    29. "font-color": "black",
    30. "background-color": "white",
    31. "border-width": 1,
    32. "border-color": "gray",
    33. "border-radius": "7px",
    34. "alpha": 0.5,
    35. "padding": "7%"
    36. }
    37. },
    38. "series": [{
    39. "values": [
    40. [11.1, 3.13],
    41. [25.1, 3.13],
    42. [30.2, 3.13],
    43. [34.2, 3.15],
    44. [59.5, 3.26],
    45. [64.1, 3.26],
    46. [70.3, 3.28],
    47. [75.4, 3.29],
    48. [80.3, 3.31],
    49. [85.3, 3.28],
    50. [90.1, 3.30],
    51. [91.3, 3.35],
    52. [95.5, 3.36],
    53. [96.1, 3.37],
    54. [99.1, 3.39]
    55. ]
    56. },
    57. {
    58. "values": [
    59. [15.5, 3.12],
    60. [30.2, 3.12],
    61. [31.9, 3.13],
    62. [35.5, 3.13],
    63. [39.1, 3.23],
    64. [53.2, 3.25],
    65. [57.1, 3.26],
    66. [61.6, 3.36],
    67. [69.5, 3.37],
    68. [71.7, 3.36],
    69. [80.3, 3.38],
    70. [85.1, 3.38],
    71. [89.3, 3.38],
    72. [92.4, 3.39],
    73. [95.5, 3.39]
    74. ]
    75. }
    76. ]
    77. };
    78.  
    79. zingchart.render({
    80. id: 'myChart',
    81. data: myConfig,
    82. height: 400,
    83. width: "100%"
    84. });
    85. </script>
    86. </body>
    87.  
    88. </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": "line",
    3. "scale-x": {
    4. "values": "0:100:10"
    5. },
    6. "scale-y": {
    7. "values": "3.1:3.4:0.1",
    8. },
    9. "plot": {
    10. "aspect": "spline",
    11. "tooltip": {
    12. "text": "X: %kt<br>Y: %vt",
    13. "text-align": "center",
    14. "font-color": "black",
    15. "background-color": "white",
    16. "border-width": 1,
    17. "border-color": "gray",
    18. "border-radius": "7px",
    19. "alpha": 0.5,
    20. "padding": "7%"
    21. }
    22. },
    23. "series": [{
    24. "values": [
    25. [11.1, 3.13],
    26. [25.1, 3.13],
    27. [30.2, 3.13],
    28. [34.2, 3.15],
    29. [59.5, 3.26],
    30. [64.1, 3.26],
    31. [70.3, 3.28],
    32. [75.4, 3.29],
    33. [80.3, 3.31],
    34. [85.3, 3.28],
    35. [90.1, 3.30],
    36. [91.3, 3.35],
    37. [95.5, 3.36],
    38. [96.1, 3.37],
    39. [99.1, 3.39]
    40. ]
    41. },
    42. {
    43. "values": [
    44. [15.5, 3.12],
    45. [30.2, 3.12],
    46. [31.9, 3.13],
    47. [35.5, 3.13],
    48. [39.1, 3.23],
    49. [53.2, 3.25],
    50. [57.1, 3.26],
    51. [61.6, 3.36],
    52. [69.5, 3.37],
    53. [71.7, 3.36],
    54. [80.3, 3.38],
    55. [85.1, 3.38],
    56. [89.3, 3.38],
    57. [92.4, 3.39],
    58. [95.5, 3.39]
    59. ]
    60. }
    61. ]
    62. };
    63.  
    64. zingchart.render({
    65. id: 'myChart',
    66. data: myConfig,
    67. height: 400,
    68. width: "100%"
    69. });