diff options
Diffstat (limited to 'examples/boxplotchart/main.cpp')
-rw-r--r-- | examples/boxplotchart/main.cpp | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/examples/boxplotchart/main.cpp b/examples/boxplotchart/main.cpp index be922f4e..115e10e7 100644 --- a/examples/boxplotchart/main.cpp +++ b/examples/boxplotchart/main.cpp @@ -25,12 +25,6 @@ #include <QBoxSet> #include <QLegend> #include <QBarCategoryAxis> -#include <QLineSeries> -#include <QScatterSeries> -#include <QTextStream> - -#include <QBrush> -#include <QColor> #include "boxdatareader.h" @@ -60,34 +54,6 @@ int main(int argc, char *argv[]) series->append(set); } -// QTextStream stream(&stockData); -// while (!stream.atEnd()) { -// QString line = stream.readLine(); -// if (line.startsWith("#")) -// continue; -// QStringList strList = line.split(" ", QString::SkipEmptyParts); -// QList<qreal> realList; -// foreach (QString str, strList) { -// realList.append(str.toDouble()); -// } - -// qSort(realList.begin(), realList.end()); - -// int count = realList.count(); -// int median = (int)(count / 2); -// int lowerQ = (int)(median / 2); -// int upperQ = median + lowerQ + 1; -// QBoxSet *set = new QBoxSet(); - -// set->setLowerExtreme(realList.at(0)); -// set->setLowerQuartile(realList.at(lowerQ)); -// set->setMedian(realList.at(median)); -// set->setUpperQuartile(realList.at(upperQ)); -// set->setUpperExtreme(realList.last()); - -// series->append(set); -// } - //![3] QChart *chart = new QChart(); chart->addSeries(series); |