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. Image for the cookie policy date

Can WPF Chart StripLines be Vertical

I notice in ASP.Net striplines have a Vertical property, but can't see that in the WPF control. Can you confirm if it is possible or recommend a workaround. 

I want to draw vertical strips on the chart not horizontal ones....

Troy

1 Reply

SS Sheik Syed Abthaheer M Syncfusion Team June 10, 2013 07:36 AM UTC

Hi Troy,

Thanks for using Syncfusion products.

We are glad to inform you that, you can achieve your requirement(Vertical Strip line) by applying StripLines into Chart PrimaryAxis as shown in the given below code snippet.

Code snippet [Xaml]:

<syncfusion:ChartArea.PrimaryAxis>

                        <syncfusion:ChartAxis>

                            <syncfusion:ChartAxis.StripLines>

                                <syncfusion:ChartStripLine x:Name="XAxisStripline1"  StartFromAxis="True" Offset="0" Width="2" TextRotationAngle="270">

                                </syncfusion:ChartStripLine>

                            </syncfusion:ChartAxis.StripLines>

                        </syncfusion:ChartAxis>

                       

 </syncfusion:ChartArea.PrimaryAxis>

 

We have prepared the sample based on your requirement. Please download the sample from the given below location.

Please let us know if you have any queries.

Regards,

M. Sheik



VerticalStriplineDemo_b37e5488.zip

Loader.
Live Chat Icon For mobile
Up arrow icon