What are the drawing modes available in hiloOpenClose chart?
HiLoOpenClose chart is used in stock analysis. This chart expects high, low, open and close values for every point in the series. These values should represent the High, Low, Open and Close values of the stock for that period.
The property drawMode in series determines whether the series should be drawn with Open or Close value or with both values. By default the drawMode is both and it takes the following enum values.
- open—points will be drawn with the opening value of the period.
- close— points will be drawn with the closing value of the period.
- both— points will be drawn with both opening and closing values of the period.
HiLoOpenClose series with open and close values
HiloOpenClose series will represent both open and close values if the value of drawMode property is both. The following code snippet illustrates
<div id="container"></div> <script type="text/javascript"> $(function () { $("#container").ejChart( { series: [{ // . . . type: 'hiloopenclose', drawMode:'both' , //. . . }] }); }); </script>
The following screenshot displays both open and close values represented in HiloOpenClose chart.
JS Playground sample link: Open and Close
HiLoOpenClose series with only Open values
HiLoOpenClose series will represent only open values if the value of drawMode property is set to open. The following code snippet illustrates this
<div id="container"></div> <script type="text/javascript"> $(function () { $("#container").ejChart( { series: [{ // . . . type: 'hiloopenclose', drawMode:'open' , //. . . }] }); }); </script>
The following screenshot displays only open values represented in HiloOpenClose chart.
JS Playground sample link: Open
HiLoOpenClose series with only Close values
HiLoOpenclose series will represent only close values if the value of drawMode property is set to close. The following code snippet illustrates this
<div id="container"></div> <script type="text/javascript"> $(function () { $("#container").ejChart( { series: [{ // . . . type: 'hiloopenclose', drawMode:'close' , //. . . }] }); }); </script>
The following screenshot displays only close values represented in HiloOpenClose chart.
JS Playground sample link: Close