diff --git a/limereport/items/lrchartaxiseditor.cpp b/limereport/items/lrchartaxiseditor.cpp index f5d06fd..548a0f5 100644 --- a/limereport/items/lrchartaxiseditor.cpp +++ b/limereport/items/lrchartaxiseditor.cpp @@ -115,6 +115,7 @@ void ChartAxisEditor::on_pushButtonOk_clicked() } else { axisData->update(); } + m_chartItem->update(); close(); } diff --git a/limereport/items/lrchartitem.cpp b/limereport/items/lrchartitem.cpp index 8d6c6b7..90a7c14 100644 --- a/limereport/items/lrchartitem.cpp +++ b/limereport/items/lrchartitem.cpp @@ -1177,7 +1177,12 @@ QString AbstractSeriesChart::axisLabel(int i, const AxisData &axisData) { const qreal min = axisData.rangeMin(); const qreal step = axisData.step(); - qreal value = min + i * step; + qreal value = 0; + if (axisData.reverseDirection() && min >= 0) { + value = min + (axisData.segmentCount() - i) * step; + } else { + value = min + i * step; + } if (std::floor(step) == step) { return QString::number(value); }