Bug 245335 - forecast graph uses scientific notation for balance amount
Summary: forecast graph uses scientific notation for balance amount
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-21 17:51 UTC by Jack
Modified: 2010-07-23 04:12 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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