200
|----|
| |
| |
| |
| |
----| |-------
How to show value on top of bar in bar graph?
Thank in advance.
Inder
200
|----|
| |
| |
| |
| |
----| |-------
How to show value on top of bar in bar graph?
Thank in advance.
Inder
i'm have the same question
Finally i have done by follwing code.
for( int i=0; i<categories.count(); i++)
{
QCPItemText *textLabel = new QCPItemText(customPlot);
textLabel->setText(QString::number(regenData));
textLabel->position->setCoords(i+1,regenData+10 );
customPlot->addItem(textLabel);
}
Now i have to problem related to clear this textLabel from graph.
Finally i successfully learn how to add labels and how to clear these labels.
Labels are Items. Items can be clear by
ui->customPlot->clearItems();
I get class "QCustomPlot" has no member "addItem", what should I do? That seems strange. I'm using v2.0.0-beta.
Hi,
my ui->customPlot doesn't have a "addItem" method, so how do you make it work?