Search found 15 matches

by sarsipius
Thu Apr 30, 2009 7:41 am
Forum: JFreeChart
Topic: Determining axis values at a mouse poisition
Replies: 3
Views: 6395

Re: Determining axis values at a mouse poisition

I'm not sure if this is what you want ::

Code: Select all

int rowIndex = dataset.getRowIndex(((CategoryItemEntity)evt.getEntity()).getRowKey());
int columnIndex = dataset.getColumnIndex(((CategoryItemEntity)evt.getEntity()).getColumnKey());
by sarsipius
Wed Apr 29, 2009 7:52 am
Forum: JFreeChart
Topic: CategoryPlot width
Replies: 12
Views: 17618

Re: CategoryPlot width

thnaks again for your help

I just try your demo and I think now I will be able to do what I want

thanks thanks thanks

the patch link is here
by sarsipius
Wed Apr 29, 2009 7:27 am
Forum: JFreeChart
Topic: Determining axis values at a mouse poisition
Replies: 3
Views: 6395

Re: Determining axis values at a mouse poisition

This is what I do to get the domain/range coordinates: double x = plot.getDomainAxis().java2DToValue(cp.translateScreenToJava2D(evt.getTrigger().getPoint()).getX(),cp.getChartRenderingInfo().getPlotInfo().getDataArea(),plot.getDomainAxisEdge()); double y = plot.getRangeAxis().java2DToValue(cp.transl...
by sarsipius
Tue Apr 28, 2009 4:23 pm
Forum: JFreeChart
Topic: CategoryPlot width
Replies: 12
Views: 17618

Re: CategoryPlot width

could someone tell me where the plot size in adjusting? in the CategoryPlot class? in the JFreeChart class ? I don't know where tweak the JFreeChart librairy in order to fix a size in pixel between category and adjust the width according to the category number I hope that in the 1.0.14 version it wi...
by sarsipius
Tue Apr 28, 2009 10:44 am
Forum: JFreeChart
Topic: [HOWTO] create charts with defined data/plot area
Replies: 30
Views: 60097

Re: [HOWTO] create charts with defined data/plot area

I don't understand how to patch the code
could you please provide a patched jar of jfreechart-1.0.13?
thanks
by sarsipius
Tue Apr 28, 2009 8:55 am
Forum: JFreeChart
Topic: CategoryPlot width
Replies: 12
Views: 17618

Re: CategoryPlot width

it's not that easy ^^;
by sarsipius
Mon Apr 27, 2009 9:02 am
Forum: JFreeChart
Topic: CategoryPlot width
Replies: 12
Views: 17618

Re: CategoryPlot width

You're right: I want a fixed width between categories and a scrollbar if there are more categories

Thanks for your patch :)
I'll try to use it
by sarsipius
Fri Apr 24, 2009 9:27 am
Forum: JFreeChart
Topic: CategoryPlot width
Replies: 12
Views: 17618

Re: CategoryPlot width

I tried to set a preferred size to the chart panel but it's not the solution

I need to fix the length of the domain axis but I don't find a method to do that
I don't even know if it's possible...

In next version coulid it be possible to not auto adjust the size of the plot? :oops:
by sarsipius
Thu Apr 23, 2009 2:26 pm
Forum: JFreeChart
Topic: CategoryPlot width
Replies: 12
Views: 17618

Re: CategoryPlot width

This is my CategoryAxis: CategoryAxis xAxis = new CategoryAxis(""); xAxis.setCategoryLabelPositions(CategoryLabelPositions.createUpRotationLabelPositions(Math.PI/2.0)); xAxis.setLowerMargin(0.01); xAxis.setUpperMargin(0.01); xAxis.setCategoryMargin(0.1); This is my ChartPanel: cp = new ChartPanel(ch...
by sarsipius
Thu Apr 23, 2009 10:04 am
Forum: JFreeChart
Topic: CategoryPlot width
Replies: 12
Views: 17618

Re: CategoryPlot width

You tell that I could try to enlarge the side of my JPanel and the JFreeChart will adjust its width?
by sarsipius
Thu Apr 23, 2009 7:49 am
Forum: JFreeChart
Topic: CategoryPlot width
Replies: 12
Views: 17618

Re: CategoryPlot width

Ok so I find the method setCategoryMargin to apply on a CategoryAxis but only the first dataset take account of the margin

Do I need to apply the margin for each dataset?
by sarsipius
Wed Apr 22, 2009 4:52 pm
Forum: JFreeChart
Topic: CategoryPlot width
Replies: 12
Views: 17618

CategoryPlot width

Hi,

I would like to know if I could add categories in a CategoryPlot without adujsting the space between categories

I would like to fix a space of 20 pixels and use a scrollbar

Is this possible ?

Thanks
by sarsipius
Mon Apr 20, 2009 11:35 am
Forum: JFreeChart
Topic: CategoryPlot with threshold and outliers
Replies: 3
Views: 5312

Re: CategoryPlot with threshold and outliers

ok sorry I was not awake this morning ;)

it works perfectly now
Thanks!
by sarsipius
Mon Apr 20, 2009 9:24 am
Forum: JFreeChart
Topic: CategoryPlot with threshold and outliers
Replies: 3
Views: 5312

Re: CategoryPlot with threshold and outliers

I have read that I could override the LineAndShapeRenderer class but I still don't understand how to use it Should I create a new serie "Outliers" and set the custom LineAndShapeRenderer? Or is it possible to apply the custom renderer to an individual item? And for my first question, could I use a g...
by sarsipius
Fri Apr 17, 2009 4:00 pm
Forum: JFreeChart
Topic: CategoryPlot with threshold and outliers
Replies: 3
Views: 5312

CategoryPlot with threshold and outliers

Hi, I try to draw a plot with categories, 2 thresholds and some outliers This picture shows what I can do right now: http://img135.imageshack.us/img135/3775/plot.jpg And here is my code: LineAndShapeRenderer renderer0 = new LineAndShapeRenderer(); renderer0.setBaseLinesVisible(true); renderer0.setBa...