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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to add total at both of stack column graph?

Thread ID:





68683 Sep 27,2007 08:22 AM UTC Dec 31,2007 05:42 AM UTC ASP.NET Web Forms (Classic) 4
Tags: Chart
Asked On September 27, 2007 08:22 AM UTC

may i know how can i add the total 2118 (as in the attachment) for my stack column graph? mean add on 2 difference series value and display it on top on the series?


hwee hoon


Replied On October 1, 2007 09:18 AM UTC

i able to do this by add another stackcolumn graph to my graph, then set the value to 0. and show my total value when set the display text function to my graph.

I able to hide the auto create series (for my extra stackcolumn) by following code under legend_filterItems

ChartLegendItemsCollection items = new ChartLegendItemsCollection();
for (int i = 0; i < args.Items.Count - 1; i++)
if (args.Items[i].Text.Trim() == "Series
args.Items[i].ShowIcon = false;
args.Items[i].Text = "";
args.Items = items;

hwee hoon

Sri Subhashini M [Syncfusion]
Replied On October 1, 2007 09:50 AM UTC

Hi Hwee,

Sorry for the delay in updating you.

I was able to understand your requirement and you could achieve the behavior in same graph by doing the following steps

1. Add another ChartAxes with OpposedPosition to the PrimaryAxes.

2. Then, set the Axes Label's CustomText by adding each point of the series and also we need to set the Axes Line color as Transparent.

I have illustrated the same in the below sample. Please take a look at the sample and let me know if it helps.



Replied On October 2, 2007 02:22 AM UTC

if current Syncfusion version that i m using is, is it mean that i can't make by ur current way (from ur sample) because i don have some of the feature that you apply in this sample. thanks

hwee hoon

Administrator [Syncfusion]
Replied On December 31, 2007 05:42 AM UTC

Hi Hwee,

Sorry for the delay in responding you. Please refer the modified sample in 4.1 version that allows you to calculate and display the total value on the top of the Stacked Column chart.


Please let me know if you have any further questions.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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