• 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>
    10. html,
    11. body,
    12. #myChart {
    13. height: 100%;
    14. width: 100%;
    15. }
    16. </style>
    17. </head>
    18.  
    19. <body>
    20. <div id='myChart'></div>
    21. <script>
    22. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    23. var myConfig = {
    24. "type": "line",
    25. "title": {
    26. "text": "%node-error-plus"
    27. },
    28. "plot": {
    29. "errors": [
    30. [3.1, 3.4], //pos and neg
    31. [3, 4],
    32. [0.9, 2.9],
    33. [6, 1.6],
    34. [3.5, 5]
    35. ],
    36. "error": {
    37. "size": 0.1
    38. },
    39. "tooltip": {
    40. "visible": false
    41. }
    42. },
    43. "crosshair-x": {
    44. "plot-label": {
    45. "text": "<strong>Pos Error: %node-error-plus</strong><br>Neg Error: %node-error-minus"
    46. }
    47. },
    48. "series": [{
    49. "values": [30, 34, 9, 16, 33]
    50. }]
    51. };
    52.  
    53. zingchart.render({
    54. id: 'myChart',
    55. data: myConfig,
    56. height: 300,
    57. width: "100%"
    58. });
    59. </script>
    60. </body>
    61.  
    62. </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. html,
    2. body,
    3. #myChart {
    4. height: 100%;
    5. width: 100%;
    6. }
    1. var myConfig = {
    2. "type": "line",
    3. "title": {
    4. "text": "%node-error-plus"
    5. },
    6. "plot": {
    7. "errors": [
    8. [3.1, 3.4], //pos and neg
    9. [3, 4],
    10. [0.9, 2.9],
    11. [6, 1.6],
    12. [3.5, 5]
    13. ],
    14. "error": {
    15. "size": 0.1
    16. },
    17. "tooltip": {
    18. "visible": false
    19. }
    20. },
    21. "crosshair-x": {
    22. "plot-label": {
    23. "text": "<strong>Pos Error: %node-error-plus</strong><br>Neg Error: %node-error-minus"
    24. }
    25. },
    26. "series": [{
    27. "values": [30, 34, 9, 16, 33]
    28. }]
    29. };
    30.  
    31. zingchart.render({
    32. id: 'myChart',
    33. data: myConfig,
    34. height: 300,
    35. width: "100%"
    36. });