I've recently upgraded from 7.1 to 9.1 and for some reason I have to create a dummy column in order to display the label for the last x-axis column.
I also find my old code for displaying those labels at an angle and below the x-axis line no longer works and I can't display the labels in a slanted orientation on that axis without them riding above the x-axis line.
The custom orientation for the y-axis seems to continue working as desired without modification.
Any ideas?
This is the code I expect is responsible for any customization to the default behavior...note that I've commented out the custom orientation and orientationangle lines and replaced that with an orientation of VerticalLeftFacing which is less than optimal but which is nevertheless the only way I've found yet to keep those labels from riding into the graph area:
//ultraChart1.Axis.X.Labels.Orientation = Infragistics.UltraChart.Shared.Styles.TextOrientation.Custom; ultraChart1.Axis.X.Labels.Orientation = Infragistics.UltraChart.Shared.Styles.TextOrientation.VerticalLeftFacing; //flip the labels (the names for each colum of data that appear along the bottom) so the text is upside down //ultraChart1.Axis.X.Labels.Flip = true; //ultraChart1.Axis.X.Labels.OrientationAngle = -135; ultraChart1.Axis.Y.Labels.Orientation = Infragistics.UltraChart.Shared.Styles.TextOrientation.Custom; ultraChart1.Axis.Y.Labels.OrientationAngle = -45; Hashtable labelRenderers = new Hashtable(); labelRenderers.Add("CUSTOM", new LabelRenderer()); ultraChart1.LabelHash = labelRenderers; ultraChart1.Legend.FormatString = "<CUSTOM>"; //increase distance between left side of chart and first column this.ultraChart1.Axis.X.Margin.Near.Value = System.Convert.ToDouble(3); //increase the distance between outside right edge of chart and last column of data this.ultraChart1.Axis.X.Margin.Far.Value = System.Convert.ToDouble(3); //bottom edge of chart separated from bottom row this.ultraChart1.Axis.Y.Margin.Near.Value = System.Convert.ToDouble(3); //distance between top edge of chart and top row of data increased this.ultraChart1.Axis.Y.Margin.Far.Value = System.Convert.ToDouble(3);
Thanks.
Allen
Perhaps a couple pictures will help....
My first question is: Why doesn't the last column label show up unless I add a dummy column.
The image below shows that the last piece of data is 13.5 and it is plotted but the label for the '09/02/2008' column is missing.
if I call the proc to add another column and do nothing else in my code I am then able to see the "last" column label (which is really not the last column anymore since I've added the dummy column).
AddChartColumn(" ",2);
Everything else being constant I don't see what the issue could be with my code. This isn't a bug is it? Any suggestions?
Thanks,
it definitely looks like a bug, and i think this one was fixed in a service release for 9.1. can you try downloading the latest service release and re-testing?
about the custom-oriented labels, check your HorizontalAlignment and VerticalAlignment properties on those labels, as they affect where the text is anchored from when it rotates. the UltraChart1.Axis.X.Labels.Layout.Padding might also help in this situation.
Thanks David. Applying the service release for 9.1 did the trick. No more need for the dummy column. Best regards, Allen