Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 797

Summary: Option to customize the Marker text in a NumericGauge
Product: Java TeeChart Reporter: yeray alonso <yeray>
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: enhancement    
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=10&t=14975&p=66390#p66390
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2014-06-13 04:58:49 EDT
The NumericGauge converts the Value of the Series to a string and draws it.

At drawHand method, in NumericGauge.java:
                    getValueMarker().setText(Double.toString(truncate(getValue())));
getValueMarker().drawText((Graphics3D) g);

- We could add some event to modify the string formatted from the Value before drawing it.
- Use the Marker Text property to draw the text. The Marker setText method is public but the Value seems to be taken to draw the text.