Search found 7 matches

by guymac
Tue Apr 27, 2004 8:22 pm
Forum: JFreeChart
Topic: Using ChartPanel
Replies: 1
Views: 2863

Using ChartPanel

Hi, I have troubles combining ChartPanel with any other swing components in a JApplet. Whatever component I add first gets 100% of the applet paintable area... how can I get the ChartPanel to play nice with other components in the same layout?
by guymac
Sat Apr 17, 2004 1:41 am
Forum: JFreeChart
Topic: JFreeChart 0.9.18
Replies: 9
Views: 13255

Error

I get the following error (in 17 and 18).
ava.lang.NoClassDefFoundError: org/apache/log4j/Logger
at org.jfree.chart.axis.Axis.<clinit>(Axis.java:169)
...
by guymac
Thu Feb 19, 2004 7:12 pm
Forum: JFreeChart
Topic: Displaying chart in jsp page.
Replies: 2
Views: 4014

Separate jsp

You need one jsp for the page, and another (servlet or jsp) for the chart.
Servlets are preferable for the chart, as per the spec you are not supposed to be able to send binary output from a jsp, although Resin doesn't seem to have a problem with it, I do it all the time.
by guymac
Wed Feb 18, 2004 11:45 pm
Forum: JFreeChart
Topic: timeline chart help needed
Replies: 1
Views: 2579

timeline chart help needed

I'd like to make a timeline chart that shows when some process is active. It's something like a Gantt chart, but not quite. Here's an example [quote] Process A x--------x x---------x x--x Process B x-----x x-------x x---------x x---x ----------------------------Time Axis---------------------------- ...
by guymac
Wed Feb 18, 2004 8:00 pm
Forum: JFreeChart
Topic: Show value and percentage on bar chart
Replies: 1
Views: 3691

Show value and percentage on bar chart

I need help figuring out how to do a custom itemLabelGenerator. I would like the label to include the numerical value and it's percentage of some other value. E.g a bar chart with

Item A XXXXXXXXXXXXXX 1000 (100%)
Item B XXXXXXXXXXX 777 (77.7%)
Item C XXXXX 333 (33.3%)

Thanks.
by guymac
Wed Feb 18, 2004 7:58 pm
Forum: JFreeChart
Topic: Show value of bar on barchart
Replies: 6
Views: 8472

Labels On Bars

Here's an example of labels on bars. No idea on 'if over certain threshold'.

Code: Select all

    BarRenderer renderer = (BarRenderer) plot.getRenderer();
    renderer.setItemLabelGenerator(
       new StandardCategoryItemLabelGenerator(
          new DecimalFormat("###")
       )
    );
by guymac
Wed Feb 18, 2004 1:00 am
Forum: JFreeChart
Topic: custom itemLabelGenerator
Replies: 1
Views: 4563

custom itemLabelGenerator

I need help figuring out how to do a custom itemLabelGenerator. I would like the label to include the numerical value and the percentage of some other value. E.g a bar chart with Item A XXXXXXXXXXXXXX 1000 (100%) Item B XXXXXXXXXXX 777 (77.7%) Item C XXXXX 333 (33.3%) Thanks.