Formatting axisX of box plot as date time type
Unsolved
General and Desktop
-
followed the example http://doc.qt.io/qt-5/qtcharts-boxplotchart-example.html, to generate box plot and trying to figure out how to add date time axisX.
-
you can use http://doc.qt.io/qt-5/qdatetimeaxis.html
QDateTimeAxis *axisX = new QDateTimeAxis; axisX->setFormat("dd-MM-yyyy"); chart->setAxisX(axisX, boxWhiskSeries);
-
Yep. How do you append x axis values to the QBoxSet / QBoxPlotSeries though? I don't see it in the example (http://doc.qt.io/qt-5/qtcharts-boxplotchart-example.html). I should retitle the question as adding and formatting.
-