I didn't find it.
Hi,
Thank you for contacting Infragistics Developer Support.
Do you want to display the values of each fragment in the stacked bar chart? If that is the case you can use the FillSceneGraph event and get all the box primitives in the chart, which are the fragments of the bar chart. After that get their value and create a text primitive with the value of the box as the text and position them to the right side of the boxes.
I have attached a sample demonstrating this suggestion.
Please let me know if that is what you are looking for.
Hi Dimitar,
thanks. Yes it was what I'm looking for.
But it's realy not easy. I think, a property like the visualstudio Chart "IsValueShownAsLabel" would be better.
greetings
Konrad
Hi Konrad,
Thank you for the reply.
There is another option to adding these labels. You can use a chart text appearance object and add it to the ChartText collection of the BarChart. The approach with the FillSceneGraph event gives you greater control and the approach with the chart text appearance is a little bit easier to implement. You have to add the following code and the chart text will appear (I have also attached a modified version of my sample in order to demonstrate this):
ChartTextAppearance cta = new ChartTextAppearance();
cta.ItemFormatString = "<DATA_VALUE_ITEM:00.00>";
cta.FontColor = Color.Black;
cta.Visible = true;
cta.Row = -2;//this means all rows
cta.Column = -2;//this means all columns
cta.HorizontalAlign = StringAlignment.Near;
cta.VerticalAlign = StringAlignment.Center;
ultraChart1.BarChart.ChartText.Add(cta);
If you still want a property for this, you can log a new product idea from our product idea site: http://ideas.infragistics.com.
There are many benefits to submitting a product idea:
- Direct communication with our product management team regarding your product idea.
- Notifications whenever new information regarding your idea becomes available.
- Ability to vote on your favorite product ideas to let us know which ones are the most important to you. You will have ten votes for this and can change which ideas you are voting for at any time.
- Allow you to shape the future of our products by requesting new controls and products altogether.
- You and other developers can discuss existing product ideas with members of our Product Management team.
Steps to create your idea:
1. Log into the Infragistics Product Idea site at http://ideas.infragistics.com (creating a new login if needed).
2. Navigate to the product / platform channel of your choice (e.g. WPF, Windows Forms, ASP.NET, HTML5 / Ignite UI, iOS / NucliOS, etc.)
3. Add your product idea and be sure to be specific and provide as much detail as possible.
The Product Idea site puts you in the driver’s seat and allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.
Thank you for contacting Infragistics.
Hello Konrad,
I am just checking about the progress of this issue. Let me know if you need my further assistance on this issue.
Thank you for using Infragistics Components.
thank you. It's all OK.
I have a little break in my Project :-)
Greetings