• 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. "title": {
    19. "text": "%node-error-minus"
    20. },
    21. "plot": {
    22. "errors": [
    23. [3.1, 3.4], //pos and neg
    24. [3, 4],
    25. [0.9, 2.9],
    26. [6, 1.6],
    27. [3.5, 5]
    28. ],
    29. "error": {
    30. "size": 0.1
    31. },
    32. "tooltip": {
    33. "visible": false
    34. }
    35. },
    36. "crosshair-x": {
    37. "plot-label": {
    38. "text": "Pos Error: %node-error-plus<br><strong>Neg Error: %node-error-minus</strong>"
    39. }
    40. },
    41. "series": [{
    42. "values": [30, 34, 9, 16, 33]
    43. }]
    44. };
    45.  
    46. zingchart.render({
    47. id: 'myChart',
    48. data: myConfig,
    49. height: 300,
    50. width: "100%"
    51. });
    52. </script>
    53. </body>
    54.  
    55. </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. "title": {
    4. "text": "%node-error-minus"
    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": "Pos Error: %node-error-plus<br><strong>Neg Error: %node-error-minus</strong>"
    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. });