data labels and percentage

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
amurugan
Posts: 5
Joined: Thu May 01, 2003 8:38 pm
Contact:

data labels and percentage

Post by amurugan » Wed May 21, 2003 9:44 pm

hi ,
how do i represent the data above the bars in the bar charts . i mean how do i have data label in charts where in i can rreperesent the data in the charts at their respective bars and how can i do it in line charts too ?.


I also have another question suppose i have values as follows
20 , 200 , 200000000
if i where to represent these values then the value 20 would not be represented clearly . if i were to make a percentage like have the max imum vertical Axes value as 2000 and having a note at the bottom of the chart that 2000 represents the max value of 200000000 then how do i adjust the remaining values and hod i represent them in the charts .

Can these kinda values be represented in charts or not .


Thanks & Regards,
Murugan

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Fri May 23, 2003 11:35 am

To display values on the chart, you can use the setValueLabelsVisible(...) method in the CategoryPlot class. It works for some charts only, but is being enhanced for the next release.

For your other question, perhaps changing the axis to a logarithmic axis would help. Apart from that, there's no other way I can think of (without modifying the axis code).
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked