You probably need to overload drawSample or drawBar. Have a look at the implementation of QwtPlotMultiBarChart and you will find your way.
Will do this.
What type of fonts do you use: pixel vs. point size ?
Used default fonts. Haven't set any other font as of now. Below is the code snippet...
QwtPlotRenderer renderer;
renderer.setDiscardFlag(QwtPlotRenderer:
iscardCanvasBackground, true);
renderer.setDiscardFlag(QwtPlotRenderer:
iscardCanvasFrame, true);
renderer.setDiscardFlag(QwtPlotRenderer:
iscardBackground, true);
//renderer.setLayoutFlag(QwtPlotRenderer::FrameWithS cales, true);
QString strFileName = m_pPDFPage->m_strFileName;
renderer.renderDocument(pPlot, strFileName, plotRect.size(), 4);
I'm a new bee. I started learning to code using Qwt recently. Can u plz paste a sample code snippet for my understanding.
4) And also I want to display values of respective bar on top of them.. Plz guide me.
HTH,
Uwe
Bookmarks