Hello I have created a diagram Gantt, but I need to place to the body of the task the executed percentage, is possible this. I am working with the version Net (2003) in aspx Example:
Example:
Task
_________|
_________|
_________|__________________ ____________________
Task1____|__________________|#########B######|
_________|
_________|
_________|
_________| ______________
Task2____||#####A#####|
_________|_____________________________________________ _________02:00__________04:00_______________08:00........Hour
A: percentage of made task , B: percentage of the made task
Dataset:
StartValues|Y | EndValues | NextTasks |LabelMember |MarkValue
------------------------ --- ------------------------ -------- --------------------
2005-11-16 02:58:21.000|0|2005-11-16 03:00:10.000|-1|SC2|10
2005-11-16 02:58:21.000|1| 2005-11-16 03:00:10.000|-1|SC3|50
2005-11-16 04:56:48.000|0| 2005-11-16 05:08:22.000|-1|SC2|30
2005-11-16 04:56:48.000|1| 2005-11-16 05:08:22.000|-1|SC3|10
2005-11-16 05:50:18.000|0| 2005-11-16 06:01:53.000|-1|SC2|6
2005-11-16 05:50:18.000|1| 2005-11-16 06:01:53.000|-1|SC3|8
2005-11-16 06:59:02.000|0| 2005-11-16 07:00:51.000|-1|SC2|9
Dim Chart1 As Steema.TeeChart.Chart = GraficoWeb.Chart
Chart1.Aspect.View3D = False
Dim bubble1 As Steema.TeeChart.Styles.Gantt = New Steema.TeeChart.Styles.Gantt(Chart1)
bubble1.StartValues.DataMember = "StartValues"
bubble1.StartValues.DateTime = True
bubble1.EndValues.DataMember = "EndValues"
bubble1.EndValues.DateTime = True
bubble1.YValues.DataMember = "Y"
bubble1.LabelMember = "LabelMember"
bubble1.NextTasks.DataMember = "NextTasks"
Desire to obtain this, but is not possible to me Task :
Task
________|
________|
________| ______________ __________________
Sec3____||#####50#####| |#######10######| .......
________|
________|
________| .......
________| ______________ ____________________
Sec2____||#####10####| |######30########|
________|_____________________________________________
________02:58______03:00____04:56________05:08 ....Hour
Thanks,
Help no Mark Gantt Diagram Impossible to make :(
Help no Mark Gantt Diagram Impossible to make :(
Last edited by mhisi on Tue May 30, 2006 12:17 am, edited 4 times in total.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi mhisi,
To achieve that you could use a fake gantt series overlapping the existing one doing something like this:
To achieve that you could use a fake gantt series overlapping the existing one doing something like this:
Code: Select all
private void Form1_Load(object sender, EventArgs e)
{
gantt1.FillSampleValues(5);
}
private void DrawGanttPercentages()
{
Steema.TeeChart.Styles.Gantt gantt2 = new Steema.TeeChart.Styles.Gantt(tChart1.Chart);
gantt2.ShowInLegend = false;
for (int i = 0; i < gantt1.Count; i++)
{
double percent = i;
gantt2.Add(gantt1.StartValues[i], gantt1.StartValues[i] + percent, gantt1.YValues[i], Color.Blue);
}
}
private void button1_Click(object sender, EventArgs e)
{
DrawGanttPercentages();
}
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi mhisi,
The approach I posted yesterday can also be applied to series feed by a dataset. Regarding custom marks, you can use GetSeriesMark event to customize the text.
The approach I posted yesterday can also be applied to series feed by a dataset. Regarding custom marks, you can use GetSeriesMark event to customize the text.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |