• 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", "2", "3", "4", "5"],
    37. "item": {
    38. "wrapText": true
    39. }
    40. },
    41. "scaleY": {
    42. "minValue": "auto",
    43. "guide": {
    44. "lineStyle": "solid"
    45. },
    46. "label": {
    47. "text": "Observations"
    48. },
    49. "item": {
    50. "wrapText": true
    51. }
    52. },
    53. "tooltip": {
    54. "fontSize": 11,
    55. "align": "left",
    56. "borderRadius": 7,
    57. "borderWidth": 1,
    58. "backgroundColor": "#fff",
    59. "alpha": 0.9,
    60. "padding": 10,
    61. "color": "#000"
    62. },
    63. "plot": {
    64.  
    65. },
    66. "options": {
    67. "box": {
    68. "barWidth": 0.5,
    69. "tooltip": {
    70. "text": "<span style=\"font-style:italic;\">Experiment no. %scale-key-text</span><br><b style=\"font-size:15px;color:%color3\">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>"
    71. }
    72. },
    73. "outlier": {
    74. "tooltip": {
    75. "text": "<span style=\"font-style:italic;\">Experiment no. %scale-key-text</span><br><b style=\"font-size:15px;color:%color-7\">Observation: %node-value</b>"
    76. },
    77. "marker": {
    78. "type": "circle"
    79. }
    80. }
    81. },
    82. "series": [{
    83. "dataBox": [
    84. [760, 801, 848, 895, 965],
    85. [733, 853, 939, 980, 1080],
    86. [714, 762, 817, 870, 918],
    87. [724, 802, 836, 871, 950],
    88. [834, 856, 864, 882, 910]
    89. ],
    90. "dataOutlier": [
    91. [0, 644],
    92. [1, 718],
    93. [4, 951],
    94. [3, 969],
    95. [2, 944]
    96. ]
    97. }]
    98. }]
    99. };
    100.  
    101. zingchart.render({
    102. id: 'myChart',
    103. data: myConfig,
    104. height: "100%",
    105. width: "100%"
    106. });
    107. </script>
    108. </body>
    109.  
    110. </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", "2", "3", "4", "5"],
    15. "item": {
    16. "wrapText": true
    17. }
    18. },
    19. "scaleY": {
    20. "minValue": "auto",
    21. "guide": {
    22. "lineStyle": "solid"
    23. },
    24. "label": {
    25. "text": "Observations"
    26. },
    27. "item": {
    28. "wrapText": true
    29. }
    30. },
    31. "tooltip": {
    32. "fontSize": 11,
    33. "align": "left",
    34. "borderRadius": 7,
    35. "borderWidth": 1,
    36. "backgroundColor": "#fff",
    37. "alpha": 0.9,
    38. "padding": 10,
    39. "color": "#000"
    40. },
    41. "plot": {
    42.  
    43. },
    44. "options": {
    45. "box": {
    46. "barWidth": 0.5,
    47. "tooltip": {
    48. "text": "<span style=\"font-style:italic;\">Experiment no. %scale-key-text</span><br><b style=\"font-size:15px;color:%color3\">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>"
    49. }
    50. },
    51. "outlier": {
    52. "tooltip": {
    53. "text": "<span style=\"font-style:italic;\">Experiment no. %scale-key-text</span><br><b style=\"font-size:15px;color:%color-7\">Observation: %node-value</b>"
    54. },
    55. "marker": {
    56. "type": "circle"
    57. }
    58. }
    59. },
    60. "series": [{
    61. "dataBox": [
    62. [760, 801, 848, 895, 965],
    63. [733, 853, 939, 980, 1080],
    64. [714, 762, 817, 870, 918],
    65. [724, 802, 836, 871, 950],
    66. [834, 856, 864, 882, 910]
    67. ],
    68. "dataOutlier": [
    69. [0, 644],
    70. [1, 718],
    71. [4, 951],
    72. [3, 969],
    73. [2, 944]
    74. ]
    75. }]
    76. }]
    77. };
    78.  
    79. zingchart.render({
    80. id: 'myChart',
    81. data: myConfig,
    82. height: "100%",
    83. width: "100%"
    84. });