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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Creating column summary labels in StackingColumnSeries

Thread ID:

Created:

Updated:

Platform:

Replies:

120982 Oct 30,2015 12:58 PM Nov 2,2015 09:45 AM WinRT 1
loading
Tags: SfChart
Cameron Flores
Asked On October 30, 2015 12:58 PM

Hi,

I'm using an SfChart control to display some stacking columns, and I'm adding each series dynamically in the code-behind, similar to the method described here: https://www.syncfusion.com/forums/106302/create-stackingcolumnseries-dynamically

My questions are: 
  1. How do I add a summary label at the top of each column, showing the total value for all the stacked elements?
  2. I need to periodically refresh the data in this chart.  Currently I'm attempting to do this by using the SfChart.Series.Clear() method, but that doesn't seem to be affecting the actual chart as it is displayed in the UI (despite actually removing the Series elements).  Currently when I do this and re-add the series values, it just appends those new series values without removing the existing ones (leading to duplicate series elements being displayed, if that makes sense).  How should I be doing this?
Thanks!

Santhiya Arulsamy [Syncfusion]
Replied On November 2, 2015 09:45 AM

Hi Cameron,

Thanks for contacting Syncfusion support.

Query 1: How to add a label at the top of each column?

You can achieve your requirement by using the Adornments in series.

Please refer to the following link for further information.

http://help.syncfusion.com/wpf/sfchart/adornments

Query 2: Need to refresh the data.

You can achieve your requirement by implementing the INotifyPropertyChanged instead of removing the series and enable the ListenPropertyChange property in series.

Please refer to the UG link for further information.

http://help.syncfusion.com/wpf/sfchart/performance

We have prepared the sample based on your requirement. Please find the sample from the following location.

Sample: StackingColumn_120982

Thanks,

Santhiya A.


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.

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

;