Project

General

Profile

Feature #2905

axis autoscale

Added by Стойчо Стефанов Stoycho Stefanov over 8 years ago. Updated over 8 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
Target version:
-
Start date:
04/04/2014
Due date:
% Done:

0%

Estimated time:

Description

Hey,

it seems to me the axis auto scaling algorithm should be improved. When the y-axis is auto scaled ant a horizontal line (at 3.3. see attachment) is rendered the scaling, or more precisely the axis labelling fails. The axis settings are:

Chart::WAxis& yAxis = chart->axis(Chart::YAxis);
yAxis.setAutoLimits(Chart::MinimumValue | Chart::MaximumValue);
yAxis.setRange(Chart::WAxis::AUTO_MINIMUM, Chart::WAxis::AUTO_MAXIMUM);
yAxis.setRoundLimits(Chart::MinimumValue | Chart::MaximumValue);

Could you try to fix it, please? I'd looked in the sources but it's quite difficult for me to understand the scaling and labelling algorithms and suggest something or just find better solution for my needs.

regards,

Stoycho


Files

axis_autoscale.png (9.85 KB) axis_autoscale.png axis auto scale Стойчо Стефанов Stoycho Stefanov, 04/04/2014 05:54 PM

Also available in: Atom PDF