how to adjust the distance between axis and chart in QChart
-
when adding axis to a QChart, I use addAxis(axis, Qt::AlignLeft), how to adjust the distance between the axis and the chart, I want to shorten the blank.
thanks -
these code are from Qt Charts Examples Logarithmic Axis Example:
QValueAxis *axisX = new QValueAxis();
axisX->setTitleText("Data point");
axisX->setLabelFormat("%i");
axisX->setTickCount(series->count());
chart->addAxis(axisX, Qt::AlignBottom);
series->attachAxis(axisX);I want to put the label "Data point" closer to the axis, how to do this?