Draw a line crossing the chart

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



1 Reply

SM Srihari Muthukaruppan Syncfusion Team 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 


Loader.
Up arrow icon