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

ChartAdornmentInfo

Hi,
 
With PieChart, e.g. showoing population by country name, is it possible to display Country Name and Population number both in the ChartAdornmentInfo?
 
At this moment, the Country name is showing in the Legend areas but will be nice to show them in the chart.

7 Replies

MA Mohammed Azarudeen Syncfusion Team July 1, 2014 11:28 AM UTC

Hi Yu,

 

We have analyzed your requirement and we have prepared a sample based on your requirement. Please find the sample under the following location.

 

Please let us know if this helps.

Thanks,

Mohammed Azarudeen.


Attachment: Pie_Chart_DemoAdormentsInfo_27057cb4.zip


YU Yu July 1, 2014 12:49 PM UTC

Hi,
 
Thanks for reply. The example is using Syncfusion.SfChart.WPF but we are using  Syncfusion.Chart.WPF.
For syncfusion:ChartAdornmentInfo.ConnectorTemplate, how does it work? Is it possible to use different shape rather than a straight line?
 
Thanks
 
Yu


MA Mohammed Azarudeen Syncfusion Team July 2, 2014 01:50 PM UTC

Hi Yu,

Query: With PieChart, e.g. showoing population by country name, is it possible to display Country Name and Population number both in the ChartAdornmentInfo in old chart.

We have prepared a sample based on your requirement and the sample can be downloaded from the following location.

Query: ChartAdornmentInfo.ConnectorTemplate, how does it work? Is it possible to use different shape rather than a straight line

You can achieve your requirement by applying data temple and setting the ConnectorTemplate property for the ChartAdornmentInfo and you can also use any symbol instead of line.

CodeSnippet[XAML]:

<DataTemplate x:Key="connectorTemplate">

        <Line X1="0" X2="10" Y1="0" Y2="0" Stroke="Black"/>

    </DataTemplate>

<syncfusion:ChartAdornmentInfo    SegmentLabelContent="LabelContentPath"  SegmentShowLine="True" LabelContentPath="{Binding Data}"  Visible="True"  ConnectorTemplate="{StaticResource connectorTemplate}"                                           LabelTemplate="{StaticResource labelTemplate}" ></syncfusion:ChartAdornmentInfo>                                     

Please let us know if this helps.

Thanks,

Mohammed Azarudeen.


Attachment: PieChartOldCustomAdorment_3a695560.zip


YU Yu July 2, 2014 04:04 PM UTC

Thanks.
Can you give an example of ConnectorTemplate  for using a curve connecting the lable and segment?
 
 


MA Mohammed Azarudeen Syncfusion Team July 7, 2014 11:06 AM UTC

Hi Yu,

 

We have analyzed your requirement and in our old chart control, we don’t have curve line connector line support. In our new SfChart control, we have Bezier curve line support by setting the property ConnectorType as Bezier. We have prepared a sample based on this and the sample can downloaded from the following location.

 

 

Note: Our new SfChart control can provide you a better performance for large amount of data with few more features included in it. We suggest you to try out our New SfChart control for your requirement.

 

Documentation link: http://help.syncfusion.com/wpf/sfchart

 

Please let us know if you have any queries.

Regards,

Mohammed Azarudeen.


Attachment: BezierConnector_1daefae1.zip


YU Yu August 6, 2014 08:15 PM UTC

Hi,

With the old Syncfusion.Chart.WPF, we can now display data correctly using straight line connector to show the label outside of the pie chart.

The problem we have now is when the segment of the pie chart are small, the labels will overlap and make it very difficult to read.

Is there a workaround to resolve it by using templates for old version? We don't have the latest 2014 version and need to use the 2012 version we have now.

Thanks 



MK Muneesh Kumar G Syncfusion Team August 12, 2014 12:00 PM UTC

Hi Yu,

Thanks for your update.

We have analyzed your requirement in our source level. As we have informed earlier, there is no default support or workaround for smart labels in PieSeries in Chart. Please try to use our new SfChart control to resolve your problem.

Please let us know if you have any queries.

Regards,

Muneesh Kumar G.


Loader.
Live Chat Icon For mobile
Up arrow icon