Search found 6 matches

by hcardoso
Thu Nov 28, 2013 6:52 pm
Forum: JFreeChart
Topic: JFreeChart painting Series Area of negative values
Replies: 4
Views: 5266

Re: JFreeChart painting Series Area of negative values

For those who are interested i did the override on XYAreaRenderer2 drawItem method.

Replaced:

Code: Select all

double transZero = rangeAxis.valueToJava2D( rangeAxis.getLowerBound() , dataArea, plot.getRangeAxisEdge());
Thanks for the help David.

Best regards
by hcardoso
Wed Nov 27, 2013 6:21 pm
Forum: JFreeChart
Topic: JFreeChart painting Series Area of negative values
Replies: 4
Views: 5266

Re: JFreeChart painting Series Area of negative values

One more thing , i have been looking at XYAreaRenderer2 and it seems to do what i want, i think i might have to change a few things. You think it's worth the effort?

Best regards,
by hcardoso
Wed Nov 27, 2013 6:03 pm
Forum: JFreeChart
Topic: JFreeChart painting Series Area of negative values
Replies: 4
Views: 5266

Re: JFreeChart painting Series Area of negative values

Meaning i have to create a renderer and override the drawItem method? Can you just give me some pointers on how to do it?

Thank you and best regards
by hcardoso
Wed Nov 27, 2013 4:20 pm
Forum: JFreeChart
Topic: JFreeChart painting Series Area of negative values
Replies: 4
Views: 5266

JFreeChart painting Series Area of negative values

I have one dataset of XYSeriesCollection and an XYAreaChart and it is filled first with the positive values and painted with for(int i = 0; i< index;i++){ chart.getXYPlot().getRenderer().setSeriesPaint(i,Color.RED); } I then proceed to try and paint the negative values the same way. My problem is th...
by hcardoso
Thu Nov 14, 2013 5:17 pm
Forum: JFreeChart
Topic: jfreechart differente series color
Replies: 1
Views: 2589

jfreechart differente series color

I have XYAreaChart and a dataset = new XYSeriesCollection(); This dataset is populated with several XYSeries and i want each one of these series to have a different color. The series can overlapse each other. Does anyone have any idea how to do this? I tried a number of things and it keeps painting ...
by hcardoso
Wed Nov 13, 2013 5:09 pm
Forum: JFreeChart
Topic: dataset with multiple series color
Replies: 2
Views: 5689

dataset with multiple series color

Hi! This is my first topic here so try and go easy on me. My problem is that i have a XYSeriesCollection called dataset which has multiple XYSeries series. I have a XYAreaChart and i want every serie displayed on the chart to have a different color. I tried a number of things to do this but it keeps...