pdf - jfree chart bar chart add $ to range value -
i implemented code represent bar chart (as of picture). problem want add $ sign values represent currencies. values be:
$0 ---- $500,000 ----- $1,000,000
any idea?
as shown here, can use numberformat.getcurrencyinstance()
:
numberformat currency = numberformat.getcurrencyinstance(); numberaxis domainaxis = (numberaxis) plot.getdomainaxis(); domainaxis.setnumberformatoverride(currency);
Comments
Post a Comment