Unsolved 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 -
-
@jsulm thanks, but 'setmargin' is usable for setting the distance between the plot area border and the plot, not the distance between the axis and the chart
-
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?
-
Did you ever determine a method for this? Similar issue on a -90 label not sizing correctly with label format, etc.