Gantt bar component

Hi people,

 I'm starting with Xojo, and trying figure out how can I make a bar gantt component, with this elements:
  • Have a small bar in start, representing setup time, black color;

  • Have a internal bar, representing quantity made, in percentual, gray color;

  • have a external bar, the main bar, representing total time for a fabrication order to be concluded, any color;

  • have a possibilty of change the colors borders of the bars, representing status of fabrication (late, in danger, normal, etc…)

    I need to know if is possible make a class, or component like this, to use in a gantt chart for a production control program. I have this component today, made in Qt Quick, but i like xojo way, and if it’s can be solved, I will change all my projects to Xojo.

    Below, two screens captures, from my dropbox, to show what I’m talk about…

https://dl.dropboxusercontent.com/u/598390/screen1.png

https://dl.dropboxusercontent.com/u/598390/screen2.png

If anyone can tell me the direction, I can complete the transition about Xojo…

Thank’s
(sorry for my english…)

Sure, this is easy, well straight-forward:

  1. Make a subclass of Canvas, “GanttCanvas”.
  2. Make some private properties for the parameters.
  3. Make some public computed properties (get/set) for the parameters. In the Set method, set the parameter, invalidate the canvas.
  4. In the Paint event, draw the chart.

Did you know our ChartDirector Plugin for Xojo already has a lot gauges and charts including gantt charts.
Maybe you don’t need to reinvent it.

Christian,
You have very nice ChartDirector examples on your website.
It would be nice if you add an example of a Gantt chart, to show some of the possibilities of the Gantt chart.
just my 2 cents. :slight_smile:

Well, we have an example project already. just download plugin and find it in the examples folder.

Hi,

Christian: I have tested your plugin few months ago… but I don’t see how to make a setup time bar, like in my screen capture, and how to change border color according the status. I will download again, and test it. Thank’s for your answer.

Brad: this way, Can I drag and drop the bars, inside the same canvas ? For example, change some gantt bar from one line to another…

…and Brad, what you want to say with “invalidate the canvas” ?

Chris, I have this product, made in Filemaker, but the gantt chart is made in javascript… very limited. I need more options, more personalized bar chart(gantt.), some animations, and drag and drop…

https://dl.dropboxusercontent.com/u/598390/FinitePro1.png

[quote=35415:@Adelar Duarte]Hi people,

 I'm starting with Xojo, and trying figure out how can I make a bar gantt component, with this elements:
  • Have a small bar in start, representing setup time, black color;

  • Have a internal bar, representing quantity made, in percentual, gray color;

  • have a external bar, the main bar, representing total time for a fabrication order to be concluded, any color;

  • have a possibilty of change the colors borders of the bars, representing status of fabrication (late, in danger, normal, etc…)

    I need to know if is possible make a class, or component like this, to use in a gantt chart for a production control program. I have this component today, made in Qt Quick, but i like xojo way, and if it’s can be solved, I will change all my projects to Xojo.

    Below, two screens captures, from my dropbox, to show what I’m talk about…

https://dl.dropboxusercontent.com/u/598390/screen1.png

https://dl.dropboxusercontent.com/u/598390/screen2.png

If anyone can tell me the direction, I can complete the transition about Xojo…

Thank’s
(sorry for my english…)[/quote]

Any progress on creating a Gantt component? I’d be interested in one…

Robb

Check out ChartDirector.

[quote=35441:@Christian Schmitz]Did you know our ChartDirector Plugin for Xojo already has a lot gauges and charts including gantt charts.
Maybe you don’t need to reinvent it.[/quote]

almost seems that this project might be a useful starting point

https://code.google.com/archive/p/ichart123/downloads

BSD license even !