Search found 17 matches
- Mon Mar 11, 2013 5:28 pm
- Forum: JFreeChart
- Topic: Very basic question - What are the Generics for ....
- Replies: 1
- Views: 3726
Very basic question - What are the Generics for ....
What are the datatype generics for the Classes: I get these warning messages regarding declaration: private static IntervalXYDataset createReturnDataset(String title, ArrayList X, ArrayList Y) Now I have tried to change this as follows private static IntervalXYDataset createReturnDataset(String titl...
- Wed Dec 12, 2012 6:11 am
- Forum: JFreeChart
- Topic: Barchar Revelation - XYDataset controls the width of Bar???
- Replies: 3
- Views: 6899
Re: Barchar Revelation - XYDataset controls the width of Bar
private static JFreeChart createBarChart(String title, String legendX, String legendY, IntervalXYDataset dataset){ final JFreeChart chart = ChartFactory.createXYBarChart( title, legendX, false, legendY, dataset, PlotOrientation.VERTICAL, true, true, false ); XYPlot plot = (XYPlot) chart.getPlot(); i...
- Wed Dec 12, 2012 6:01 am
- Forum: JFreeChart
- Topic: Barchar Revelation - XYDataset controls the width of Bar???
- Replies: 3
- Views: 6899
Re: Barchar Revelation - XYDataset controls the width of Bar
It is the dataset where you find the barchart Width override. Frankly that does not make that much sense - To me I would expect in the chart or XYPlot to see an over ride value there and the setIntervalPositionFactor(0.5) for centered bar with about each datapoint X (domain) value versus setInterval...
- Wed Dec 12, 2012 5:06 am
- Forum: JFreeChart
- Topic: Barchar Revelation - XYDataset controls the width of Bar???
- Replies: 3
- Views: 6899
Barchar Revelation - XYDataset controls the width of Bar???
Oh my g-d! I could not believe it was that simple? Here I was creating my own painter but note that painter may well empower more functionality ultimately but For now I need to know some basics about the IntervalXYDataset which it seems is really a static version of XYSeriesCollection object such th...
- Tue Dec 11, 2012 11:34 pm
- Forum: JCommon
- Topic: Is it possible with XYPlot to do same as in StackedBarChart?
- Replies: 0
- Views: 64216
Is it possible with XYPlot to do same as in StackedBarChart?
I would very much like to show bar graphs in this style but at the same time I must be able to set the width of the each bar drawn for each dataset point What I have done thus far now that I corrected my code to draw bars starting from g2.fill3DRect((int) (bar.getX() -(barWidthAdjust/2)), (int) bar....
- Tue Dec 11, 2012 1:15 am
- Forum: JFreeChart
- Topic: Help needed getting setItemMargin(0.0) to work ........
- Replies: 8
- Views: 15022
Re: Help needed getting setItemMargin(0.0) to work ........
Yes but I needed to adjust them to a wider value per plotting. What I have now which uses the XYBarPainter or GradientXYBarPainter over ridden methods. I currently have what I want basically except for the fact that 3D effect I had before does not show up now which is my next problem to solve. Too b...
- Tue Dec 11, 2012 1:14 am
- Forum: JFreeChart
- Topic: Help needed getting setItemMargin(0.0) to work ........
- Replies: 8
- Views: 15022
Re: Help needed getting setItemMargin(0.0) to work ........
Yes but I needed to adjust them to a wider value per plotting. What I have now which uses the XYBarPainter or GradientXYBarPainter over ridden methods. I currently have what I want basically except for the fact that 3D effect I had before does not show up now which is my next problem to solve. Too b...
- Sat Dec 08, 2012 4:56 am
- Forum: JFreeChart
- Topic: I lost my 3D look when substituted this
- Replies: 0
- Views: 3381
I lost my 3D look when substituted this
GradientXYBarPainter painterG =new GradientXYBarPainter() { //0.40, 0.40, 0.20) { @Override public void paintBarShadow(Graphics2D g2, XYBarRenderer renderer, int row, int column, RectangularShape bar, RectangleEdge base, boolean pegShadow) { System.out.println("wSHADDOW="+ bar.getWidth()+",H="+bar.g...
- Sat Dec 08, 2012 1:56 am
- Forum: JFreeChart
- Topic: Is there a simple way to set the width of XYBarChart bars?
- Replies: 2
- Views: 6282
Re: Is there a simple way to set the width of XYBarChart bar
I made some more progress. It seems I can change the width of my bars through the creation of XYBarPainter although it does not seem to be the most straightforward method and it stops the 3d look in the bar rendering. Now I tried to use the XYGradientXYBarPainter which seems much harder to use altho...
- Fri Dec 07, 2012 10:13 pm
- Forum: JFreeChart
- Topic: Is there a simple way to set the width of XYBarChart bars?
- Replies: 2
- Views: 6282
Re: Is there a simple way to set the width of XYBarChart bar
I tried the following to expand the bar widths but lost my gradient 3D effect. Any way to implement the default 3D behavior in red?? Here is the code used thus far: Yes I see that. Actually all I wanted to do really as it turned out was expand the width of each bar on the Domain access I tried the f...
- Fri Dec 07, 2012 10:11 pm
- Forum: JFreeChart
- Topic: Help needed getting setItemMargin(0.0) to work ........
- Replies: 8
- Views: 15022
Re: Help needed getting setItemMargin(0.0) to work ........
Yes I see that. Actually all I wanted to do really as it turned out was expand the width of each bar on the Domain access I tried the following but lost the 3d effect I had prior to doing this: private static JFreeChart createBarChart(String title, String legendX, String legendY, IntervalXYDataset d...
- Fri Dec 07, 2012 7:07 pm
- Forum: JFreeChart
- Topic: Is there a simple way to set the width of XYBarChart bars?
- Replies: 2
- Views: 6282
Is there a simple way to set the width of XYBarChart bars?
Hello I found what I believe to be a possible solution except my domain scale is a percent and the code involved setting up the following: Note the main points of interest: setBaseToolTipGenerator - sets up a call back method to handle a toolTipGenerator which is probably irrelevant to the question ...
- Fri Dec 07, 2012 4:24 pm
- Forum: JFreeChart
- Topic: Help needed getting setItemMargin(0.0) to work ........
- Replies: 8
- Views: 15022
Re: Help needed getting setItemMargin(0.0) to work ........
Okay fair enough. I was tired in my defense! BarRenderer xyrend =(BarRenderer) plot.getRenderer(); xyrend.setItemMargin(0.0); It appears that the BarRenderer object is not what is returned rather it is XYItemRenderer that should be returned without casting. So the wrong object was returned causing a...
- Thu Dec 06, 2012 2:50 am
- Forum: JFreeChart
- Topic: Help needed getting setItemMargin(0.0) to work ........
- Replies: 8
- Views: 15022
Re: Help needed getting setItemMargin(0.0) to work ........
Please help me out here?? The Chart guide has let me down!!!
- Thu Dec 06, 2012 2:43 am
- Forum: JFreeChart
- Topic: Help needed getting setItemMargin(0.0) to work ........
- Replies: 8
- Views: 15022
Help needed getting setItemMargin(0.0) to work ........
Ok so please tell me why this does not work??? I used the setItemMargin(0.0); // to eliminate the gap between the barcharts. Here is my code - Why does this stop working because of the lines in red: And while we are discussing it what exactly does IntervalMarker do. Note I can not find it in the Jfr...