Jump to content
Software FX Community

Gantt chart problems


OlaMac

Recommended Posts

 Here is more less how the code looks like :

chartG.Stacked = SoftwareFX.ChartFX.

Stacked.No; chartG.Gallery = SoftwareFX.ChartFX.Gallery.Gantt;chartG.DataType[0] = SoftwareFX.ChartFX.DataType.Label;chartG.DataType[1] = SoftwareFX.ChartFX.DataType.IniValue;chartG.DataType[2] = SoftwareFX.ChartFX.DataType.Value;

chartG.OpenData(SoftwareFX.ChartFX.

COD.IniValues, 1, 3);chartG.OpenData(SoftwareFX.ChartFX.COD.Values, 1, 3);chartG.IniValue[0, 0] = DateTime.Now.AddDays(-55).ToOADate(); chartG.Value[0, 0] = DateTime.Now.AddDays(-50).ToOADate();

chartG.IniValue[0, 1] = DateTime.Now.AddDays(-45).ToOADate(); chartG.Value[0, 1] = DateTime.Now.AddDays(-40).ToOADate();

chartG.IniValue[0, 2] = DateTime.Now.AddDays(-25).ToOADate(); chartG.Value[0, 2] = DateTime.Now.AddDays(-20).ToOADate();

chartG.CloseData(SoftwareFX.ChartFX.

COD.Values);chartG.CloseData(SoftwareFX.ChartFX.COD.IniValues);

chartG.AxisY.Step = 10; // 10 dayschartG.AxisY.LabelsFormat.Format = SoftwareFX.ChartFX.AxisFormat.Date;  // want to see dates on the vertical Axis

PROBLEMS : 1.  The first element is not displayed !  The problem is with MIN value for the vertical Axis, the MIN = chartG.Value[0, 0], while it should be equal to chartG.IniValue[0, 0].I have tried to set the AxisY.Min value to be much much earlier, but it simply didn't work. How to set MIN and MAX values for the vertical Axis ?2. How to display IniValues in the DataEditor? By default it shows only Values, is it possible to show also IniValues ?  Thanks, Ola Mac

Link to comment
Share on other sites

> 1.  The first element is not displayed !  The problem is with MIN value for the vertical Axis, the MIN = chartG.Value[0, 0], while it should be 

> equal to chartG.IniValue[0, 0]. I have tried to set the AxisY.Min value to be much much earlier, but it simply didn't work. How to set MIN

> and MAX values for the vertical Axis ?

First, to make sure we are in the same page, in a gantt chart, the Y-Axis is horizontal. So you may be changing the wrong one. To change the horizontal axis min and max in a gantt chart you must use:

chart.AxisY.Min = <min value>;

chart.AxisY.Max = <max value>;

> 2. How to display IniValues in the DataEditor?

This is not supported. the data editor is not capable of displaying inivalues.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...