How to display Tornado bar chart variable and it's min and max value using QWT
Hi All,
I have created Tornado plot using QwtPlotMultiBarChart Class.
I want to display Variable and it's min and max value on tornado bar chart.
code snippet given below.
To do color tornado bar chart used below code.
Code:
// set red color on left side of tornado bar
QwtColumnSymbol *symbol = new QwtColumnSymbol(QwtColumnSymbol::Box);
tornadoBarChart->setSymbol(0, symbol);
// set blue color on right side of tornado bar
QwtColumnSymbol *symbol2 = new QwtColumnSymbol(QwtColumnSymbol::Box);
symbol2
->setPalette
(QPalette(Qt
::blue));
tornadoBarChart->setSymbol(1, symbol2);
Code:
QVector<QVector<qreal>> minMaxVector;
sortMinMaxDiff(minMaxMap, minMaxVector);
TornadoWidget = new TornadoPlot(optimumMudweightbaseValue, minMaxVector, units);
TornadoWidget ->setWindowTitle("Tornado Plot");
thank you for any kind for help.
Regards,
RBsahu
Re: How to display Tornado bar chart variable and it's min and max value using QWT
Hi All,
Is it feasible using QWT or not.
Anyone have some idea please response.
Re: How to display Tornado bar chart variable and it's min and max value using QWT
Don't know, what exactly is the question ?
Uwe
1 Attachment(s)
Re: How to display Tornado bar chart variable and it's min and max value using QWT
Hi Uwe,
I have created tornado plot.
Now my next requirement is to print the value of tornado bar.
For reference I am attaching screen shot where tornado bar value is printed.
Similarly I want to print tornado bar value using qwt function.
Which function of class can be used to print tornado bar value.
thank you
RBSahu
Re: How to display Tornado bar chart variable and it's min and max value using QWT
So the question is how to draw a texts to the left/right sides of the bars ?
Uwe
Re: How to display Tornado bar chart variable and it's min and max value using QWT
Thank you Uwe,
Yes I want to print bar value and text.
Regards,
RBsahu
Re: How to display Tornado bar chart variable and it's min and max value using QWT
Quote:
Originally Posted by
RBSahu
Yes I want to print bar value and text.
Overload one of the drawXY methods and use QPainter::drawText or QwtText::draw.
HTH,
Uwe