Hi,
I am using UltraWinChart version 8.1.200081.1000 for displaying a line graph.
On X-Axis the space between the axis line and the labels doesnot allow labels to be visible fully. The following is the code I am using:
.Axis.X.TickmarkStyle = AxisTickStyle.Smart.Axis.X.Labels.ItemFormatString = "<ITEM_LABEL:dd-MMM-yy>".Axis.X.Labels.Orientation = TextOrientation.Custom.Axis.X.Labels.OrientationAngle = 45.Axis.X.Labels.VerticalAlign = StringAlignment.Far.Axis.X.Extent = 45.LineChart.TreatDateTimeAsString = False
I had also tried using the following:
.Axis.X.Labels.Layout.Behavior = AxisLabelLayoutBehaviors.None
but with no luck.
You can try increasing the Extent property:
.Axis.X.Extent = 60
Hi Teodor,
Thanks for your reply. I tried the solution given by you but unfortunately was not able to overcome the problem.
Have a look on the attached file. By increasing the Extent property, the only difference I can see is the margin increases between the bottom of the graph visible area and the X-Axis line.
Any help would be greatly appreciated..
You can try using:
this.ultraChart1.Axis.X.Labels.HorizontalAlign = StringAlignment.Center;
or:
this.ultraChart1.Axis.X.Labels.VerticalAlign = StringAlignment.Far;
Hi Teodor
Thanks for your reply.
I tried your solution and would be able to find success in some extenct. Now, the problem is that if the number of labels are more than 13 then again the same issue arises. If the labels are <=13 then the graph works fine.
Please refer the screenshots for your reference.
You can try adding the following line:
this.ultraChart1.Axis.X.Labels.Layout.Behavior = Infragistics.UltraChart.Shared.Styles.AxisLabelLayoutBehaviors.None;
I also have same issue, I tried this and Extend property on barchart x axis lable, but extend property give more space on bottom and left side, any sample code earliest is appriciated., I need more space on right side of x axis to show my label
Thanks for your feedback. Let me know if you have any further questions.
Regards
Thanks ! Chart Wizard help me lot .
Thanks for attached screenshot. Looking at the provided information, maybe you could try the property:
ultraChart1.Axis.X.Margin.Far.Value = 10; - Far property = right side / Near property = left side
Also you could do this using our chart`s designer. Please take a look at the attached video for more details. Let me know if you have any questions,