Graph components

Hey all,

Not too sure where to ask this but I am after a specific type of control or information on how to roll a control that will display information in the form of a multi-coloured horizontal line graph. Similar to a Gantt chart, the control will be used to display current and historic information, such as speed, door activity (open, closed), temperature changes, etc. from a transportation vehicle. The graph needs to be scrollable horizontally and it also needs to be interactive so that I can capture line-clicked events for displaying extra info and for drilling down.

I have done some research on the Internet regarding this but can not find any useful info on what I am after. I know that this is a very specific query so any help at all that you can offer would be great.

Thanks in advance,

Stephen.

[843 byte] By [sroughley] at [2007-12-24]
# 1
Assuming you don't want to buy this, I'd start with a horizontal scrollbar and a panel. Use the scrollbar to decide what you are going to paint, use the panel's Paint event and its e.Graphics argument to draw the graph. When the user moves the scrollbar thumb, force the panel to repaint with its Refresh method. Implement the panel's MouseDown event to detect clicks. Correlate its e.X argument with the scrollbar position to find the horizontal position, try to guess which line was clicked with the e.Y argument.
nobugz at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 2

Thank you! Exactly the kind of info I am after. I'll give that a whirl over the next week and let you know how I get on.

Thanks again.

Regards,

Stephen.

sroughley at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 3
DlhSoft provides Gantt Chart-enabled Windows Forms controls, if you want check out the two available products: DlhSoft Project Management Control Library (business logic-oriented), DlhSoft Project Data Control Library (data-binding-oriented).
SorinD at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...