Bug 245335

Summary: forecast graph uses scientific notation for balance amount
Product: [Applications] kmymoney Reporter: Jack <ostroffjh>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jack 2010-07-21 17:51:37 UTC
Version:           unspecified (using KDE 4.4.3) 
OS:                Linux

The forecast graph (both on the home page and the chart tab of the forecast view) uses scientific notation for the balance amount.  This is somewhat odd for financial amounts.  

Reproducible: Always
Comment 1 Alvaro Soliverez 2010-07-22 16:02:33 UTC
Just got a mail from Sebastian Sauer (KDAB) explaining how to do it:

Sure. By reimplementing the AbstractAxis::customizedLabel method it's possible
to just provide any formatting. Please see here in the attached Timeline
plotter sample the timeaxis.cpp which I just changed to return *always* a
scientific notation.

-------------------------------------------------

Noted down here as a reminder for the fix
Comment 2 Alvaro Soliverez 2010-07-23 04:12:53 UTC
SVN commit 1153291 by asoliverez:

Reimplement how the labels for the abscissa axis are generated.

There's room for improvement (choose an optimized precision based on the report accounts, format as money, etc.)

BUG:245335

 M  +1 -0      CMakeLists.txt  
 A             kbalanceaxis.cpp   [License: GPL (v2+)]
 A             kbalanceaxis.h   [License: GPL (v2+)]
 M  +2 -1      kreportchartview.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1153291