How to get progress of a task in horizontal bar chart.

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
skalluraya
Posts: 15
Joined: Fri Jan 23, 2009 5:36 am

How to get progress of a task in horizontal bar chart.

Post by skalluraya » Mon Feb 02, 2009 2:35 pm

Hi,

1) I have some tasks and i want show its percentage of completion in vertical graph. It should be like, if 50% percent of the task is completed then half of the bar should be red and half should be white. Is it possible in jfree chart to do that if yes then how can i achieve it.


2) I want to show the label of all bars at the center of whole plot or chart how can i do it.

arwelbath
Posts: 24
Joined: Fri Aug 10, 2007 12:37 pm

Post by arwelbath » Mon Feb 02, 2009 4:12 pm

As regards to (1), why not just use a normal JProgressBar?

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 » Mon Feb 02, 2009 9:29 pm

(1) can be done using a simple stacked bar chart, but I'd also ask why you don't just use a JProgressBar.

For (2), I don't understand the question.
David Gilbert
JFreeChart Project Leader

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

skalluraya
Posts: 15
Joined: Fri Jan 23, 2009 5:36 am

Post by skalluraya » Tue Feb 03, 2009 5:34 am

thank you,

About my second question. i want labels to all the bars in barchart in a same horizontal line and that to in middle of the x-axis interval(for horizontal bar chart), not in middle of each bar.

and Can i use JProgressBar in my jsp page or Web Application.

Locked