Hi,
the range of my data is from -200 to 200 and I set ZeroAligned to true.
After set ZeroAligned to true, the x-axis line is start from 0 of y-axis, and it's position is in the center of this chart.
but the x-axis labels are still in the bottom...
the customer asks that these labels must near the x-axis line.
Could you please tell me how to set this x-axis labels position and let these labels can near the x-axis line?
thanks!
thanks for your reply.
but the X-Axis line is not in the center,
the data may be like this:
X A B C D
Y 10 2 -100 -50
and X-Axis starts from zero in Y ( ZeroAligned=true)
How can I get the approximate ratio about this dy?
You should calculate the Dy value depending on the chart height and the height dependant properties. For example:
ultraChart1.Axis.X.Extent = 30;ultraChart1.Axis.X.Labels.LabelStyle.Dy = -(ultraChart1.Height / 2 - ultraChart1.Axis.X.Extent);
thanks a lot!!
it works, but... there is another problem now..
if the user resize this chart, these labels still fixed in some position...
How do I re-calculate the Dy that can make these labels followed the X-Axis line??
As I see you are using Labels on the X axis, not SeriesLabels, so try setting:
ultraChart1.Axis.X.Labels.LabelStyle.Dy = -100;
I try this setting but it doesn't work...
the followed is the related settings, are there some settings wrong?
ultraChart1.DataSource = dv;
ultraChart1.Legend.Visible = true;
ultraChart1.Data.ZeroAligned = true;
ultraChart1.Axis.X.Extent = 30;
ultraChart1.Axis.X.Labels.Orientation = Infragistics.UltraChart.Shared.Styles.TextOrientation.Horizontal;
ultraChart1.Axis.Y.Labels.ItemFormatString = "<DATA_VALUE:0,0>";
ultraChart1.Axis.X.Labels.SeriesLabels.LabelStyle.Dy = -100;