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

Transparent Pie Chart with Only Border Line: SfChart

Hello everyone,

Is there any way to create pie chart which has only border line and each pie segment has no color? Like this format:

Sample Chart


3 Replies

MK Muneesh Kumar G Syncfusion Team June 27, 2019 08:50 AM UTC

Hi Utemar, 
 
Greetings from Syncfusion.  
 
We have analyzed your requirement and you can achieve this by setting Interior as transparent in series and Stroke as Black or required color as per the below code snippet.  
 
Code snippet 
  <chart:SfChart  Margin="10" 
                       x:Name="chart" > 
 
            <chart:PieSeries XBindingPath="XValue" YBindingPath="YValue" 
                             Interior="Transparent" Stroke="Black"  
                             ItemsSource="{Binding Data}"> 
                <chart:PieSeries.AdornmentsInfo> 
                    <chart:ChartAdornmentInfo ShowLabel="True" SegmentLabelContent="Percentage"/> 
                </chart:PieSeries.AdornmentsInfo> 
            </chart:PieSeries> 
 
        </chart:SfChart> 
 
 
We have prepared a sample based on this, please find the sample from the following location.  
 
 
Screenshot: 
 
 
Please let us know if you have any other queries.  
  
Thanks, 
Muneesh Kumar G.   



XH Xamarin Hunter replied to Muneesh Kumar G June 27, 2019 11:52 PM UTC

Hi Utemar, 
 
Greetings from Syncfusion.  
 
We have analyzed your requirement and you can achieve this by setting Interior as transparent in series and Stroke as Black or required color as per the below code snippet.  
 
Code snippet 
  <chart:SfChart  Margin="10" 
                       x:Name="chart" > 
 
            <chart:PieSeries XBindingPath="XValue" YBindingPath="YValue" 
                             Interior="Transparent" Stroke="Black"  
                             ItemsSource="{Binding Data}"> 
                <chart:PieSeries.AdornmentsInfo> 
                    <chart:ChartAdornmentInfo ShowLabel="True" SegmentLabelContent="Percentage"/> 
                </chart:PieSeries.AdornmentsInfo> 
            </chart:PieSeries> 
 
        </chart:SfChart> 
 
 
We have prepared a sample based on this, please find the sample from the following location.  
 
 
Screenshot: 
 
 
Please let us know if you have any other queries.  
  
Thanks, 
Muneesh Kumar G.   


This was definitely a solution to the problem. Thanks.
Best regards.


MK Muneesh Kumar G Syncfusion Team June 28, 2019 05:32 AM UTC

Hi Utemar,  
 
Thanks for the update. Please let us know if you need any further assistance. 
   
Regards,  
Muneesh Kumar G. 


Loader.
Live Chat Icon For mobile
Up arrow icon