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
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,
Thanks for the sample. I have deployed and it seems to be the one which I was looking for. But one thing is that when I move over the mouse on the values on the right side of the stack chart it always says 100% as the value. I'm not sure wehere I can change so that it will display correct value.
I have attached the screen shot as well regarding this. Please check the screen shot and let me know where I can change the code so it will show correct value.
Thank you for the update. This is occurring because the FormatString property for the Tooltips property hasn’t be set so it is using the default value. If you check under the Tooltips property of the UltraWebChart and set the FormatString to the following the tool tip will display properly:
<DATA_VALUE_ITEM:#00>%
Please let me know if you have any questions concerning this matter.
Perfect. Sorry to bother you again but how can I have a custom colours on the bars? On every refresh the colour get chaged. How can I specify the color for the bars in the chart?
I'm integrating this charts in Sharepoint so far it's working perfectly fine. I have changed your code a little e.g deployment-scenario and ImgePipePageName. I have many charts built using SSIS reports and now we trying to get rid of SSIS reports so using infragistics chart control to do so. In future if I have question I will be asking you in this forum.
Thanks for all your supoort so far,
I appreciate all the helps you have provided so far. I have recently come across the requirement for bar chart which goes like this. I have numbers instead of percentage and when we show data on bar I have to show perecentage and when I hover over it should show the number.
I have attached the screen shot also.
I'm not sure how I can do that. Please let me know how it can be done.
Thanks,Sanjay
Thank you for the update. I have created a new case for this ColumnChart questions you have. You can access your support cases by going to the following location and logging in:https://es.infragistics.com/my-account/support-activity
For applying a gradient to the chart please see the following documentation:http://help.infragistics.com/NetAdvantage/ASPNET/2012.1/CLR4.0/?page=Chart_Apply_a_Gradient_Effect_to_a_Primitive.html
Thanks for all your support.
I have couple of question though 1) I'm trying to do the same in ColumnChart but not able to figure out. 2) How can I have gradient effect for the colors?
Looking forward for your reply.
Thank you for the update. Since the bar/stacked bar chart don’t have data for the y-axis it seems the way to do this is using the margins on the y-axis, please see the following documentation:
http://help.infragistics.com/NetAdvantage/ASPNET/2012.1/CLR4.0/?page=Chart_Axis_Margins.html
For the Legend I adjusted the SpanPercentage of the Legend property and it allowed the items to be displayed on the same line. You could also use the FillSceneGraph event to modify the legend:
Thanks for the link I will go through the link and try to accomplish this.
I have couple of question though. 1) The first bar start from 0,0 instead I wanted some space on Y - axis. I mean when you look at the screen shot which I have attached in my first post it has some space on Y-Axis. Iwas able to have between the bars but couldn't get the way which helps me to have space between X-aix and first Bar. 2) In a Legend the data is diplayed vertically is there a way so that the data inside legend will be displayed horizonatally instead?
I'm sorry but I'm give you a lot of hard time.