Search found 11 matches

by prolaznik22
Wed Jul 12, 2006 9:09 pm
Forum: JFreeChart
Topic: dashed lines effect gets lost as points increase DEFECT??
Replies: 1
Views: 2230

dashed lines effect gets lost as points increase DEFECT??

Hi, I have noticed that as the number of points increases, the dashing line effect gets lost completely (I am using the latest JFreeChart). The reason for this problem is that dashing effect occcurs only between points not throughout the whole line. Thus, as the number of points increase, the effect...
by prolaznik22
Sun Jul 09, 2006 1:28 am
Forum: JFreeChart
Topic: How to use different shapes to distinguish lines
Replies: 2
Views: 2693

Solved the problem

Thanks skunk for your reply. Basically, what I did was that I implemented my renderer that extends XYLineAndShapeRenderer. I overrode drawSecondPass ( a protected method which is responsibly for drawing shapes) and I put my logic in that method. The code is: package com.telus.insight.graph; import j...
by prolaznik22
Sat Jul 08, 2006 1:36 pm
Forum: JFreeChart
Topic: How to use different shapes to distinguish lines
Replies: 2
Views: 2693

How to use different shapes to distinguish lines

Hi, I am using the latest JFreeChart. In my line graph, I want each line to start and end with some shape. I did some research in the news group and I found that I have to implement my own renderer to do this. So, My questions are: 1) How would I start about doing this? 2)I already noticed that Jfre...
by prolaznik22
Fri Jun 16, 2006 7:25 pm
Forum: JFreeChart
Topic: How to create chart inside the web application?
Replies: 2
Views: 2540

Look at the web samples in jfreechar website. There is a war file and source code there.
by prolaznik22
Fri Jun 16, 2006 7:23 pm
Forum: JFreeChart
Topic: How to customize the drawing of legend items
Replies: 1
Views: 2979

How to customize the drawing of legend items

Hi, I have JFreeChart 1.0.1. I want to customize the drawing of legend items. I did the research in the news group, but all the postings talk about re-implementing the draw method in Standard Legend class. I can't find that class in JFreeChart 1.0.1. I know that I have to re-implement some draw meth...
by prolaznik22
Sat Jun 03, 2006 4:06 pm
Forum: JFreeChart
Topic: split axis label into 3 lines 2 Questions URGENT
Replies: 1
Views: 2642

Solution-Demo line chart

Here is the code for this problem. I had to re-implement drawLabel method to fit my requirements. I wrote a sample demo for it. The code is below package demo; import java.awt.*; import java.awt.geom.*; import java.text.*; import java.util.*; import java.util.ArrayList; import java.util.List; import...
by prolaznik22
Thu Jun 01, 2006 8:17 pm
Forum: JFreeChart
Topic: split axis label into 3 lines 2 Questions URGENT
Replies: 1
Views: 2642

split axis label into 3 lines 2 Questions URGENT

1) I have a number axis. I am using the latest jfree chart. Basically, my axis label is two long and I would like to split into three lines. I did the research in the newsgroup and I found that it is not implemened in the older versions. I tried playing with the latest version to no success. Could a...
by prolaznik22
Thu Feb 09, 2006 5:11 pm
Forum: JFreeChart
Topic: How to increase the tooltip area (hotspot)
Replies: 1
Views: 2765

Follow up: found the solution

For people who may have a similar problem, I have posted my solution to this problem. Basically, the tooltip hotspot is collected from the entities, which are retrieved int the method body of a drawItem, which is located in a renderer class. The piece of code that does this retrieval is: // add an i...
by prolaznik22
Wed Feb 08, 2006 3:58 pm
Forum: JFreeChart
Topic: custom tooltip
Replies: 1
Views: 2938

Pretty much every renderer has setToolTipGenerator (generator) method. Basically, you would implement your own class that overrides a generator and call setToolTipGenerator on your class. For example, XYItemRenderer has setToolTipGenerator (XYToolTipGenerator generator) So you would implement your c...
by prolaznik22
Wed Feb 08, 2006 3:46 pm
Forum: JFreeChart
Topic: How to increase the tooltip area (hotspot)
Replies: 1
Views: 2765

How to increase the tooltip area (hotspot)

Hi,

I have implemented a stacked bar chart with very thin bars. Since the bars are very thin, the tooltip hotspot is very thin. I would like to increase it. Is there any way to this nicely?

Thanks,

Vlad
by prolaznik22
Fri Feb 03, 2006 9:42 pm
Forum: JFreeChart
Topic: sun.dc.pr.PRException: endPath: bad path exception-defect
Replies: 0
Views: 1199

sun.dc.pr.PRException: endPath: bad path exception-defect

Hi, I have noticed that (sun.dc.pr.PRException: endPath: bad path) exception gets thrown every time you zoom (5-6 times at least) in on the chart. This is a java defect. Supposedly, it is fixed in 5.0 version. In any case, I wrote my customrenderer that fixes this issue. I have noticed that some peo...