I have a graph in mind that I want to build, and I tried playing around with the samples I got online and from some forum posts, but I ended up not being able to come close to having text on the y-axis with dates on the x-axis and multiple overlapping bars. It looks like a Gantt chart but I think its different enough that we should be using the WinForms UltraChart as its base.
Each y-axis label like AJ or D has two bars in it, a white and a black. They are supposed to overlap a little bit as you can see at the right of the chart.
There is a requirement that sometimes these white lines are going to look choppy (i'll post another picture to demonstrate this), so the implementation needs to be flexible enough to handle that.
Does anyone have any idea how I can build this with the UltraWinChart?
I am using infragistics v11.2.
Thank you.
Here is the more 'choppy' version.
Hello Robert,
I try to create a small sample for you with desired behavior. Could you please take a look at the attached sample and video file for more details and let me know if you have any questions.
Regards
Here is the Video file
This is the sample
Robert said: I would still need to figure out how to make the second bar per label (or per task) that is slightly offset from the main green bar
At the moment we have not such default functionality into our GanttChart, but nevertheless you could acheive desired behavior if you create your own Box Primitive into your FillSCeneGraphe event.
For example :
Box newBox = new Box(new Rectangle(((Box)pr).rect.X + (((Box)pr).rect.Width) + 30, ((Box)pr).rect.Y, ((Box)pr).rect.Width, ((Box)pr).rect.Height ));
newBox.PE.Fill = Color.Yellow;
listPr.Add(newBox);
foreach (Primitive it in listPr) e.SceneGraph.Add(it);
Please let me know if you have any further questions.
Thank you so much for this. I think that something like this might actually work - although I would still need to figure out how to make the second bar per label (or per task) that is slightly offset from the main green bar. While my original pictures do not show the intersection of these two bars that I am talking about well in the HTML page because they are truncated, if you click on the picture link from my prior posts you can see the full picture.
The Percent complete inner bar wont' work for me, because the 2nd bar is not always going to be contained within the first, and might even be bigger than the first bar.
Any other ideas?