when user change the chart window's size,the axis's label can adjust their visible when all labels are custom label.
My Axis's label can't adjust its label's visible when the chart window's size have been changed.The axis's labels will overlap and it is unacceptable!
please look this attachment.
The custom label is added like this:
Code: Select all
double x=0;
AxisLabelItem xLabel = tChart1.Axes.Bottom.Labels.Items.Add(Convert.ToDouble(x.ToString("E3")));
xLabel.Transparent = true;
xLabel.Width = 90;
xLabel.Value = x;
All label will displayed when max window status,but when user change the chart window's size,there should be only show 0.00,2.00,4.00,6.00,8.00,10.00,The other label should be hidden.
I know the Feature list have realize this function,but my project can't and I don't know what causes this.
I want to know:How can I realize this?Is there have something effective for this or a property can do this?