chartjs / Chart.js

Simple HTML5 Charts using the <canvas> tag
https://www.chartjs.org/
MIT License
64.67k stars 11.91k forks source link

[FEATURE] Gantt Charts #4445

Closed JSchrepp closed 4 years ago

JSchrepp commented 7 years ago

With the inclusion of Moment.js, it feels odd not to have even the bare bones such a time-oriented chart available. Horizontal bars don't quite do the job, even with a Moment.js-based time axis.

I realize this is a rather large feature request.

Expected Behavior

etimberg commented 7 years ago

I think this request is best implemented as an external plugin. The specialized logic for this will make the core too big

cjarv commented 7 years ago

Hi guys, This is exactly the feature I am looking for and am currently trying to create it out of a stacked bar chart, but @JSchrepp is right its a bit cumbersome. Having the ability to have it stackable with milestones would be very useful. So I guess integrating it into mixed charts would probably do this. Just a thought. Cheers guys!

thomasjoscht commented 7 years ago

Hey,

+1 for this extension. I'm also at the point to visualize a Gantt chart. The hack via horizontal bar does work with some limitations:

Regards Thomas

cjarv commented 7 years ago

@thomasjoscht Not sure if this helps but here is what I did based on another post. The line chart made it a lot easier to grab tooltips. Im new to Javascript but it seems to be working out if I hide the Legend. https://jsfiddle.net/c_jarv/cb47aejn/

thomasjoscht commented 7 years ago

My use case is an overview of job executions of last 24 hours. With some additional coding I could solve my main problems. But solution still smells. Here is a simple sample https://jsfiddle.net/Lq3aptph/.

gantt in chart js

Problems:

Further considerations could be to use a scatter chart instead. But my first tries were not sufficient.

mojimi commented 5 years ago

+1 for a Gantt plugin, it's the only thing missing in my opinion, Google Charts gantt is terribly outdated

FalcoGer commented 5 years ago

I'd like that as well. I don't want to drag in another library.

etimberg commented 4 years ago

Closing since this isn't a feature that will be in the core library