OlaMac Posted August 23, 2007 Report Share Posted August 23, 2007 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 Quote Link to comment Share on other sites More sharing options...
Frank Posted August 29, 2007 Report Share Posted August 29, 2007 > 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.