Hello,
i created a chart text property to the ChartTextCollection of my BarChart.
Actually the Label is just above the bar. Is it possible to show the Label insight a Column in vertical adjustment ?
Hello fpollmann,
There are different approaches to solve this task. One possible approach could be if you are using HorizontalAlign property. If you think that this approach is not suitable into your scenario, you could use OffSet method of your text primitives. For example you could handle FillSceneGraph event and include the code:
if (pr.GetType() == typeof(Text) && pr.Row == -1 && pr.Column == -1 && pr.Path == null)
{
((Text)pr).bounds.Offset(-30, 0);
}
Please take a look at the attached sample for more details and let me know if you have any questions.
Regards
Here is the sample
Thanks for your answer and your effort to create this sample ! It works for me and is doing that what i need :-)
I have a second question about BarLabels too.
I set the RangeMax of the Axis to 20, because i have mostly small values under 20, but sometimes the values can be very high.
If i have a value of 120 for example (and the RangeMax is 20), the BarLabel isn't visible anymore.
Is there a easy property to set or any other way to show the BarLabel on the Bar(s) with the higher values ?
Maybe one possible approach could be if you set AxisRangeType property. For example:
ultraChart1.Axis.X.RangeType =AxisRangeType.Automatic;
By this way you do not need to specify Max and Min Range values.
Let me know if you have any questions.
I tested this before, but if i use this option the ColumnBar's with the lower value are very small.
I attached a Screenshot of the chart, i hope that explains better what i mean.
Thanks for attached screenshot. The mentioned behavior is expected due to your item GRKZ5060. Maybe one possible solution could be if you are using ScrollScale of your X axis. For example:
ultraChart1.Axis.X.ScrollScale.Visible = true;ultraChart1.Axis.X.ScrollScale.Scale = 0.2;
Please let me know if you have any questions.
Hello Georgi,
i set the Y Axis ScrollScale as you wrote it (them of Axis X), but then the labels of the lower values are also not visible.
I attached a new Screenshot of the current state.
Isn't it possible to catch the value Labels (above the bar) in an event for example and change the location of the labels ?
Then i could change the location of the labels from the Bars with a higher value of 20 for example.
Thanks for your help by the way :-)
Many thanks for your example Application.
I found the cause of failure. I used Infragistics DLL's with the Version number 10.2
Now i am using 11.1 as in your example Application and it works without any code changes in my Application.
Strange stuff, i tried a lot of things and nothing was helpfully. But now with the newer DLL's it looks fine.
Thanks for your help !
this is the sample
I try to reproduce your scenario in a small sample, but without success. Could you please take a look at the attached sample and video file and let me know if you think that I didn`t reproduce your scenario and issue. Please modify this sample and revert it back to me. I`ll be glad to research it for you ad help you.