Add more information to the chart
-
Hi ,
I tried the box-and-whiskers chart example and it is working.
I'd like to add more information to box-and-whiskers chart.
Like
How to implement it if possible.
Thanks,
-
Hi ,
I tried the box-and-whiskers chart example and it is working.
I'd like to add more information to box-and-whiskers chart.
Like
How to implement it if possible.
Thanks,
// Create a QGraphicsTextItem for the text
QGraphicsTextItem* textItem = new QGraphicsTextItem("Max Value");
textItem->setPos(2, 18); // Set the position of the text// Add the text item to the chart
chart->scene()->addItem(textItem);Customize the text appearance if desired:
// Set the font size and color of the text item
QFont font = textItem->font();
font.setPointSize(12);
textItem->setFont(font);
textItem->setDefaultTextColor(Qt::red);