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.
// 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);
// set red color on left side of tornado bar
QwtColumnSymbol *symbol = new QwtColumnSymbol(QwtColumnSymbol::Box);
symbol->setPalette(QPalette(Qt::red));
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);
To copy to clipboard, switch view to plain text mode
QVector<QVector<qreal>> minMaxVector;
sortMinMaxDiff(minMaxMap, minMaxVector);
TornadoWidget = new TornadoPlot(optimumMudweightbaseValue, minMaxVector, units);
TornadoWidget ->setWindowTitle("Tornado Plot");
QVector<QVector<qreal>> minMaxVector;
sortMinMaxDiff(minMaxMap, minMaxVector);
TornadoWidget = new TornadoPlot(optimumMudweightbaseValue, minMaxVector, units);
TornadoWidget ->setWindowTitle("Tornado Plot");
To copy to clipboard, switch view to plain text mode
thank you for any kind for help.
Regards,
RBsahu
Bookmarks