2012-09-12 5 views
1

저는 Ms 웹 차트를 사용하여 세로 막 대형 차트를 누적했습니다. 축 번호가 < = 9 인 경우 Axis 레이블이 제대로 올 것입니다. 9 이상이면 레이블이 제대로 오지 않습니다. 그 다음> 9 인 경우 pointindex은 = 9 다음이오고 잘보다 작은 경우MsWeb 차트를 사용하는 AxisLabel 누적 세로 막 대형 차트

for(int pointIndex = 0; pointIndex < 10; pointIndex++) 
{ 
    Chart1.Series["Series1"].Points.AddY(Math.Round((double)random.Next(45, 95),0)); 
    Chart1.Series["Series2"].Points.AddY(Math.Round((double)random.Next(5, 75),0)); 
    Chart1.Series["Series3"].Points.AddY(Math.Round((double)random.Next(5, 95), 0)); 
    Chart1.Series["Series4"].Points.AddY(Math.Round((double)random.Next(35, 95), 0)); 

    Chart1.Series["Series1"].Points[pointIndex].AxisLabel = "test" + pointIndex; 
} 

Chart1.Series["Series1"].ChartType = "StackedColumn"; 
Chart1.Series["Series2"].ChartType = "StackedColumn"; 
Chart1.Series["Series3"].ChartType = "StackedColumn"; 
Chart1.Series["Series4"].ChartType = "StackedColumn"; 

축 레이블은 축 정보이 LabelAutoFitStyle="LabelsAngleStep90" Interval="1" 추가 제대로

답변

0
<AxisX LineColor="64, 64, 64, 64" Title="Instrument Type" IsLabelAutoFit="true" TitleFont="Microsoft Sans Serif, 15pt, style=Bold" LabelAutoFitStyle="LabelsAngleStep90" Interval="1" > <LabelStyle Font="Microsoft Sans Serif, 7pt, style=Bold" /> </AxisX> 

오고있다. 원하는만큼 많은 라벨을 볼 수 있습니다.

관련 문제