10 Mar 2011 12:19
Re: Axis Chart resolution
On Thu, Mar 10, 2011 at 11:18 AM, Koen Deforche <koen@...> wrote: > Hey Gaetano, > > 2011/3/10 Gaetano Mendola <mendola@...>: >> On Wed, Mar 9, 2011 at 8:46 PM, Gaetano Mendola <mendola@...> wrote: >>> Hi all, >>> is it possible to set a minimum resolution on the axis chart ? As >>> example plotting >>> the points: >>> >>> (0, 1.112), (1, 1.113), (2.114) >>> >>> leads to have reported on the Y axis the values: 1.11, 1.11, 1.11. >>> >>> Putting a resolution of 10 as example would lead those 3 points as a >>> straight orizontal >>> line instead of a diagonal one and then wandering why on the y axis I >>> have all 1.11 > > Using WAxis::setLabelFormat() you can configure the labels to show > more significant digits. > >> I have tried asking the minimum value or the maximum valued displayed >> on the axis (the autolimit is set) and i seems that the minimum and >> maximum retrieved are the ones of the previous visualization. > > True. You can force the chart to recalculate its layout using > WCartesianChart::initLayout() Would this lead to have 2 calls to initLayout each time the model changes?(Continue reading)
RSS Feed