• 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. "graphset": [{
    25. "type": "hboxplot",
    26. "plotarea": {
    27. "margin": "100"
    28. },
    29. "scaleX": {
    30. "guide": {
    31. "visible": false
    32. },
    33. "label": {
    34. "text": "Experiment No."
    35. },
    36. "values": ["1"]
    37. },
    38. "scaleY": {
    39. "label": {
    40. "text": "Observations"
    41. }
    42. },
    43. tooltip: {
    44. paddingBottom: 20
    45. },
    46. "options": {
    47. "box": {
    48. "barWidth": 0.5,
    49. "tooltip": {
    50. "text": "<span style=\"font-style:italic;\">Experiment no. %scale-key-text</span><br><b style=\"font-size:15px;\">Observations:</b><br><br>Maximum: <b>%data-max</b><br>Upper Quartile: <b>%data-upper-quartile</b><br>Median: <b>%data-median</b><br>Lower Quartile: <b>%data-lower-quartile</b><br>Minimum: <b>%data-min</b>"
    51. }
    52. },
    53. "outlier": {
    54. "tooltip": {
    55. "text": "<span style=\"font-style:italic;\">Experiment no. %scale-key-text</span><br><b style=\"font-size:15px;\">Observation: %node-value</b>"
    56. },
    57. "marker": {
    58. "type": "circle"
    59. }
    60. }
    61. },
    62. "series": [{
    63. "dataBox": [
    64. [30, 45, 50, 57, 70]
    65. ],
    66. "dataOutlier": [
    67. [1, 24]
    68. ]
    69. }]
    70. }]
    71. };
    72.  
    73. zingchart.render({
    74. id: 'myChart',
    75. data: myConfig,
    76. height: "100%",
    77. width: "100%"
    78. });
    79. </script>
    80. </body>
    81.  
    82. </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. "graphset": [{
    3. "type": "hboxplot",
    4. "plotarea": {
    5. "margin": "100"
    6. },
    7. "scaleX": {
    8. "guide": {
    9. "visible": false
    10. },
    11. "label": {
    12. "text": "Experiment No."
    13. },
    14. "values": ["1"]
    15. },
    16. "scaleY": {
    17. "label": {
    18. "text": "Observations"
    19. }
    20. },
    21. tooltip: {
    22. paddingBottom: 20
    23. },
    24. "options": {
    25. "box": {
    26. "barWidth": 0.5,
    27. "tooltip": {
    28. "text": "<span style=\"font-style:italic;\">Experiment no. %scale-key-text</span><br><b style=\"font-size:15px;\">Observations:</b><br><br>Maximum: <b>%data-max</b><br>Upper Quartile: <b>%data-upper-quartile</b><br>Median: <b>%data-median</b><br>Lower Quartile: <b>%data-lower-quartile</b><br>Minimum: <b>%data-min</b>"
    29. }
    30. },
    31. "outlier": {
    32. "tooltip": {
    33. "text": "<span style=\"font-style:italic;\">Experiment no. %scale-key-text</span><br><b style=\"font-size:15px;\">Observation: %node-value</b>"
    34. },
    35. "marker": {
    36. "type": "circle"
    37. }
    38. }
    39. },
    40. "series": [{
    41. "dataBox": [
    42. [30, 45, 50, 57, 70]
    43. ],
    44. "dataOutlier": [
    45. [1, 24]
    46. ]
    47. }]
    48. }]
    49. };
    50.  
    51. zingchart.render({
    52. id: 'myChart',
    53. data: myConfig,
    54. height: "100%",
    55. width: "100%"
    56. });