• 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. "plot": {
    19. "errors": [
    20. [5.5, 6.3],
    21. [8, 9],
    22. [5.1, 6],
    23. [6.3, 7.4],
    24. [4, 5],
    25. [7.3, 7.4],
    26. [6.1, 6.1],
    27. [6.6, 8.9],
    28. [7.4, 6.1],
    29. [6.1, 7],
    30. [5.6, 5.9],
    31. [6.3, 7.1]
    32. ],
    33. "error": {
    34. "size": "7px",
    35. "line-color": "#cc0000",
    36. "line-width": 1,
    37. "alpha": 0.7
    38. },
    39. "line-color": "#000080",
    40. "line-width": 1,
    41. "marker": {
    42. "size": 3,
    43. "background-color": "#000080",
    44. "border-color": "#cc0000"
    45. }
    46. },
    47. "scale-y": {
    48. "guide": {
    49. "line-style": "dotted"
    50. }
    51. },
    52. "series": [{
    53. "values": [35, 42, 67, 89, 25, 34, 67, 85, 30, 33, 34, 95]
    54. }]
    55. };
    56.  
    57. zingchart.render({
    58. id: 'myChart',
    59. data: myConfig,
    60. height: 400,
    61. width: "100%"
    62. });
    63. </script>
    64. </body>
    65.  
    66. </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. "plot": {
    4. "errors": [
    5. [5.5, 6.3],
    6. [8, 9],
    7. [5.1, 6],
    8. [6.3, 7.4],
    9. [4, 5],
    10. [7.3, 7.4],
    11. [6.1, 6.1],
    12. [6.6, 8.9],
    13. [7.4, 6.1],
    14. [6.1, 7],
    15. [5.6, 5.9],
    16. [6.3, 7.1]
    17. ],
    18. "error": {
    19. "size": "7px",
    20. "line-color": "#cc0000",
    21. "line-width": 1,
    22. "alpha": 0.7
    23. },
    24. "line-color": "#000080",
    25. "line-width": 1,
    26. "marker": {
    27. "size": 3,
    28. "background-color": "#000080",
    29. "border-color": "#cc0000"
    30. }
    31. },
    32. "scale-y": {
    33. "guide": {
    34. "line-style": "dotted"
    35. }
    36. },
    37. "series": [{
    38. "values": [35, 42, 67, 89, 25, 34, 67, 85, 30, 33, 34, 95]
    39. }]
    40. };
    41.  
    42. zingchart.render({
    43. id: 'myChart',
    44. data: myConfig,
    45. height: 400,
    46. width: "100%"
    47. });