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.
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 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 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 increasing the Extent property:
.Axis.X.Extent = 60