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.
Syncfusion Feedback

Draw a line crossing the chart

Thread ID:

Created:

Updated:

Platform:

Replies:

150505 Jan 9,2020 08:55 AM UTC Jan 10,2020 08:39 AM UTC React - EJ 2 1
loading
Tags: Chart
Oscar Ramos
Asked On January 9, 2020 08:55 AM UTC

I'm using ChartComponent, is it possible to put a line that crosses the chart as in the image below?



Srihari Muthukaruppan [Syncfusion]
Replied On January 10, 2020 08:39 AM UTC

Hi Oscar, 

We have analyzed your query. From that, we would like to let you know that we can achieve your requirement using “striplines” property in axis of the chart. Based on your requirement we have also prepared a sample for reference. Please find below screenshot, code snippet and sample.  

 
Code Snippet: 
primaryYAxis: 
        { 
           stripLines: [ 
                { 
                    start: 76.5, end: 77.5, zIndex: "Over",  
                    color: 'green' 
                } 
            ] 
        }, 

Screenshot: 
 
Let us know if you have any concerns. 

Regards, 
Srihari M 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

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

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