Search found 9 matches

by blajevardi
Tue Jan 22, 2008 9:30 pm
Forum: JFreeChart
Topic: Barchart - Category/Series - null bars
Replies: 3
Views: 6299

Running 1.0.0 version having problem running your code

David, I have tried your code under 1.0.0 version and the code did not like the following line: renderer.setIncludeBaseInRange(false); I commented it out, but the example did not run. I have the same problem when using stacked bar chart with subcategories. There are many zeros in my data set. I do n...
by blajevardi
Mon Jan 21, 2008 8:36 pm
Forum: JFreeChart
Topic: StackedBarChartDemo4 again!
Replies: 0
Views: 1609

StackedBarChartDemo4 again!

Hi Everybody, Is there any good solution for turning the "product" label by 90 degree without degrading the font? The last solution was: domainAxis.setSubLabelFont(domainAxis.getSubLabelFont().deriveFont(0, AffineTransform.getRotateInstance(Math.PI / 2.0))); The result of it is not that nice using t...
by blajevardi
Fri Sep 07, 2007 12:14 am
Forum: JFreeChart
Topic: Trying to find out the dateset for the bar chart
Replies: 1
Views: 3141

I found a dirty way!

In the mouse event handler, I can do the following: public void mouseReleased(MouseEvent e) { ChartPanel cp = (ChartPanel) e.getSource(); String str = cp.getToolTipText(e); str = str.substring(str.indexOf(',') + 2, str.indexOf(')')); System.out.println(str); } This would give me the domain value!
by blajevardi
Thu Sep 06, 2007 7:32 pm
Forum: JFreeChart
Topic: Trying to find out the dateset for the bar chart
Replies: 1
Views: 3141

Trying to find out the dateset for the bar chart

I am interested to know how to find the dataset for specific bar once I click the mouse on the bar or move the mouse over it. I believe the solution would good enough for bar chart and stacked bar chart. I know I can define a mouse handler that get the event and register it with the chart itself by ...
by blajevardi
Thu Sep 06, 2007 7:22 pm
Forum: JFreeChart
Topic: how to create a half pie chart
Replies: 3
Views: 6070

I am interested for a solution too, but

making the chart with "%50 and set all its colors / fill patterns / strokes to null" would not save space! It would look odd!
by blajevardi
Tue Dec 05, 2006 12:13 am
Forum: JFreeChart
Topic: Group Stack Bar Chart
Replies: 6
Views: 11312

Hey, you were a great help. I followed your instructions and I am almost there. The other issues I see are two things: 1) the font has been changed in the process which was predictable, but now it is not that readable as before. I am still experimenting with what font to use to get maximum readabili...
by blajevardi
Thu Nov 30, 2006 6:47 pm
Forum: JFreeChart
Topic: Label Positisions for sub Category
Replies: 2
Views: 5112

Label Positisions for sub Category

Hi, I am trying to turn my subcategory Label Positions. I know there is a method for the category itself, but not for subcategory. I could not find any method for that. My sub Category labels are pretty long, therefore I need to turn them about 45 degree, so they can be readable. I am trying to use ...
by blajevardi
Tue Nov 28, 2006 8:46 pm
Forum: JFreeChart
Topic: Group Stack Bar Chart
Replies: 6
Views: 11312

Hi Rohi

Thank you for taking time writing some code for me. It took me a while to understand the whole concept of grouping. I needed to reorganize my data to be able to use grouping. It was not very clear what we are trying to group. From the chart I thought we group the data based on the date, but somehow ...
by blajevardi
Tue Nov 21, 2006 6:30 pm
Forum: JFreeChart
Topic: Group Stack Bar Chart
Replies: 6
Views: 11312

Group Stack Bar Chart

Hi everybody, I am trying to create a bar chart exactly like StackedBarChartDemo4. But I tried to follow that example and define a data set and a KeyToGroupMap, but it seems to me that I cannot define any data set which is very dynamic. In the context of StackedBarChartDemo4, I would not know how ma...