Jump to content
Software FX Community

GANTT, Datasource und VB


cds

Recommended Posts

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

Link to comment
Share on other sites

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))

 

Link to comment
Share on other sites

  • 1 month later...

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

 

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...