Hi there,
I have an requirement to built 100% Stacked Bar Chart using infragistic .Net Control.
Infragistic do have that chart in place? If Yes can anyone guide me how to build that chart?
I have attahced the chart screen shot which we have implemented using SSRS reports.
Waiting for your reply.
Thanks,
Sanjay
Update :
we have Ultimate NetAdvantage 2012 package from Infragistics.
Hello sanjudak,
Thank you for contacting Infragistics!We received your support request concerning a stacked bar chart with percentages, and this case has been assigned to me. Infragistics is dedicated to helping you solve this issue. Our team and I have done an initial review of your case and I am looking into creating a sample to demonstrate this behavior and will get back to you by the end of the day Tuesday with more information or questions for you.
We also have the following documentation on the stacked bar chart data:http://help.infragistics.com/NetAdvantage/ASPNET/2012.1/CLR4.0/?page=Chart_Working_with_2D_Stacked_Bar_Chart_Data.html
Sincerely,Mike P.Developer Support EngineerInfragistics, Inc.www.infragistics.com
Thank you for your patience. I have a few questions concerning this matter. What does you data look like when you set it to the chart? Is it already the correct percentage or do you want the percentage displayed based on the total values entered? Is it a requirement to have the percentages be displayed on the bars of the chart itself?
Hello Mike,
Thanks for taking time to help me on this mater. we have different requirements in the chart displayed above has percentage and I have another chart which has numbers instead of percentage. Our data is correct percentage itself which will be displayed on chart. In other requirement we have numbers also Let say total is 45 then there will be two/ three data which will be 20, 10 ,15 and this will be displayed in one bar of the chart.
Yes it is a requirement to have percentages be displayed on the bars but if it is not at all possible to do so then we can have tool tip instead of displaying the percentage or number on bar itself.
Let me know if you need any other information.
Thanks, Sanjay
Hello Sanjay,
Thank you for the update. Doing this with your data already in percentage there are a few things to setup then it will be ready. First after selecting the Stacked Bar Chart you will want to change the StackStyle to Complete off of the StackChart property. Off of the BarChat property you will want to change the ChartText. On the ChartText you will change the ItemFormatString to <DATA_VALUE_ITEM:#00>%. Next under the Axis you will change the label for the X axis. Under Labels then change the ItemFormatString to <DATA_VALUE:00.##>%. I am attaching a sample demonstrating this behavior.
If you data isn’t in percentage format you will either want to do so or use the FillSceneGraph to apply the labels you want.
http://help.infragistics.com/NetAdvantage/ASPNET/2012.1/CLR4.0/?page=Chart_FillSceneGraph_Event.html
Also please note the StackedBar chart doesn’t support the PRECENT_VALUE label formatting. I have submitted the following feature request for this # PI12070185.
hi mike.. what if i want the percentage displayed based on the total values entered?