QCustomPlot Discussion and Comments

Is Gantt-Chart supported ?Return to overview

I want to draw some chart by timeline, for example , displaying the function-time-cost in a program.
as :
| [function -a [function-b] [function-c] [function-b] .... ]

You can somewhat emulate gantt charts by using QCPBars with the horizontal axis as value axis and the vertical axis as key axis. Then either explicitly place them via QCPBars::setBaseValue, or stack them on top of each other using QCPBars::moveAbove. (where "above" in this case means in the positive direction of the value axis, so the right.)

You can also draw arrows using QCPItemArrow.

However, there is no explicit Gantt plottable which would make this a bit more convenient.