cds Posted April 30, 2008 Report Share Posted April 30, 2008 Hi, I can't found a sample and an explanation for creating a GANTT from Datasource with Visual Basic.Hereby my two lines: Chart1.DataSourceSettings.Fields.Add( New ChartFX.WinForms.FieldMap("TASK_ID", FieldUsage.XValue))Chart1.DataSourceSettings.Fields.Add(New ChartFX.WinForms.FieldMap("TASK_CREATION_DATE", FieldUsage.Value))How can I define the End_Date? Bye Chris Quote Link to comment Share on other sites More sharing options...
cds Posted April 30, 2008 Author Report Share Posted April 30, 2008 I found it myself: Chart1.DataSourceSettings.Fields.Add( New ChartFX.WinForms.FieldMap("TASK_ID", FieldUsage.XValue))Chart1.DataSourceSettings.Fields.Add(New ChartFX.WinForms.FieldMap("TASK_CREATION_DATE", FieldUsage.FromValue)) Chart1.DataSourceSettings.Fields.Add( New ChartFX.WinForms.FieldMap("TASK_FINISH_DATE", FieldUsage.Value)) Quote Link to comment Share on other sites More sharing options...
cds Posted May 31, 2008 Author Report Share Posted May 31, 2008 Now the next question: ChartWorksstreamGantt.DataSourceSettings.Fields.Add( New ChartFX.WinForms.FieldMap("TASK_ID", FieldUsage.XValue))ChartWorksstreamGantt.DataSourceSettings.Fields.Add(New ChartFX.WinForms.FieldMap("TASK_NAME", FieldUsage.Label))ChartWorksstreamGantt.DataSourceSettings.Fields.Add(New ChartFX.WinForms.FieldMap("TASK_ACT_START", FieldUsage.FromValue))ChartWorksstreamGantt.DataSourceSettings.Fields.Add(New ChartFX.WinForms.FieldMap("TASK_ACT_FINISH", FieldUsage.Value))ChartWorksstreamGantt.DataSourceSettings.Fields.Add(New ChartFX.WinForms.FieldMap("TASK_START_DATE", FieldUsage.FromValue))ChartWorksstreamGantt.DataSourceSettings.Fields.Add(New ChartFX.WinForms.FieldMap("TASK_FINISH_DATE", FieldUsage.Value))I have a 2nd series.But the 2nd start and enddate will not work. Whats my failure? Thanks, Chris Quote Link to comment Share on other sites More sharing options...
TimTran Posted June 1, 2008 Report Share Posted June 1, 2008 Chris: Have you checked the Dreamhouse Gantt sample that is available in the Chart FX resource center. They display a lot of Gantt functionality in that sample. To check it out: Open the Chart FX 7 Resource Center (Start menu or from VS from teh Smart Tag Wizard), Go to chart types and select gantt. They provide the VS sample with code. Quote Link to comment Share on other sites More sharing options...
cds Posted June 2, 2008 Author Report Share Posted June 2, 2008 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.