Thank u, Uwe...

Quote Originally Posted by Uwe View Post
You probably need to overload drawSample or drawBar. Have a look at the implementation of QwtPlotMultiBarChart and you will find your way.
Would make sense to add a configurable spacing attribute to the API. Please add a feature request: https://sourceforge.net/p/qwt/feature-requests/
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);


You have to overload QwtScaleDraw::label: https://qwt.sourceforge.io/class_qwt...41f4f06ec5442d
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