)
We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Essential JS2

Syncfusion jQuery based widgets are no longer in active development. Switch to our pure JavaScript based next generation Essential JS 2 library.

Syncfusion Feedback

What are the drawing modes available in hiloOpenClose chart?

Platform: jQuery |
Control: ejChart |
Published Date: November 14, 2014 |
Last Revised Date: November 18, 2019 |
.NET Framework: 4 |
Product Version: 12.1.0.43

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.

Series with open and close values

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.

Series with only Open values

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.

Series with only Close values

JS Playground sample link: Close

ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon