Jump to content
Software FX Community

Why Gantt chart's Axis X is invisible


W.D

Recommended Posts

Hi, I'm working a Gantt chart. But i found the AxisX (Left line) is invisible. Even I try to set value for AxisX's Line.Color, Line.Style, Line.Width, it's actually set these values to AxisY (Bottom line). It's very strange. Could you please help?

Chart1.AxesStyle=SoftwareFX.ChartFX.AxesStyle.Math;

Chart1.Gallery = SoftwareFX.ChartFX.Gallery.Gantt;

Chart1.AxisX.Line.Style=System.Drawing.Drawing2D.DashStyle.Solid;

Chart1.AxisX.Line.Color=Color.Black;

Chart1.AxisX.Line.Width=5;

Chart1.PointLabels=true;

Chart1.Scrollable=

false;

 

Chart1.OpenData(SoftwareFX.ChartFX.COD.Values,2,3);

 

for(int i=0;i<3;i++)

{

Chart1.Legend=...;

Chart1.Value[0,i] = ...;

Chart1.Value[1,i] = ...;

 

Chart1.Point[0,i].Color=Color.Black;

Chart1.Point[1,i].Color=Color.Red;

}

Chart1.CloseData(SoftwareFX.ChartFX.COD.Values);

 

Chart1.AxisY.LabelsFormat.Decimals=1;

 

Chart1.RecalcScale();

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...