I'm trying to adjust the X Extent of one of our charts in order to provide some margin between the X-axis labels and the bottom of the control/form.
Here's the code I'm using to adjust the intent.
<code snippet>Dim xAxisClipBehavior As New ClipTextAxisLabelLayoutBehaviorxAxisClipBehavior.ClipText = TruexAxisClipBehavior.Enabled = TruexAxisClipBehavior.EnableRollback = TruexAxisClipBehavior.HideText = FalsexAxisClipBehavior.Trimming = StringTrimming.EllipsisCharacterxAxisClipBehavior.UseOnlyToPreventCollisions = False
chtStatsChart.Axis.X.Labels.Layout.Behavior = AxisLabelLayoutBehaviors.UseCollectionchtStatsChart.Axis.X.Labels.Layout.BehaviorCollection.Clear()chtStatsChart.Axis.X.Labels.Layout.BehaviorCollection.Add(xAxisClipBehavior)chtStatsChart.Axis.X.Extent = chtStatsChart.Axis.X.Extent + 80</code snippet>
This works fine on my machine and I get the expected results. However on some of my co-workers machines, there is still no bottom margin and some of the x-axis labels are even being cut off.
Here are some screenshots to show examples.
This screenshot is from my machine - you can see it's working:
This is a screenshot from a teammates system - obviously it's not working there:
I'm not sure why it's working on my system and not on others....any thoughts?
Any assistance would be appreciated!
Hi Georgi,
Thanks for the suggestion but we're not prepared to update the Infragistics controls that we use in our application at this time. We have discussed possibly updating to the latest version in our next release but that is not a definite yet.
If we do update to the latest version and begin to see this issue again I'll definitely come back and update this post. At this time, the issue seems to be resolved though.
Thanks again for all your help!
Brad
Hello Brad,
Thanks for provided information. You could try also to install the latest service release - 9.1.20091.2094. You could download it from our site: Infragistics.com -> MyIG -> My Keys and Downloads.
Regards
We're using version 9.1.20091.2029. That should tell you the major version plus what service release we have installed. All machines are running at 96 dpi. The machines that the chart is working on are running Windows 7 64bit. The machines that the issue is showing up on are running Windows XP 32bit.
Additionally - I did some tweaking to the extent for the X-axis and it seems to have resolved the problem. I was originally increasing it by 60 pixels to add the small margin, I upped the increase to 80 pixels and it seems to be okay on all machines now.
If you need any more information to investigate on your end, please let me know. But otherwise, we seem to be working ok now.
Thanks again,
Brad (Civel)
Hello Civel,
Could you please try to provide us more details. First could you please tell me what is your component version. Do you have any installed service release. Are you using the same version and service release on a both systems. What is the DPI settings of a both systems. Could you please tell me what are the OS on a both systems. Are you using 32 or 64 bits.
I`ll wait your response.
Thanks and Regards
Georgi