Search found 15 matches
- Wed Jan 14, 2009 12:10 pm
- Forum: JFreeChart
- Topic: XYPointerAnnotation set line arrow
- Replies: 1
- Views: 2625
XYPointerAnnotation set line arrow
Hi all, Is possible to set the linee of arrow in a XYPointerAnnotation ? see the img : From http://www.youimages.org/public/images/120004chart_con_mark.png To http://www.youimages.org/public/images/120413chart_con_mark_2.png There are some method setArrowWidth, setArrowLength but they change the sty...
- Wed Nov 05, 2008 3:20 pm
- Forum: JFreeChart
- Topic: how get the distance between two points
- Replies: 1
- Views: 2626
how get the distance between two points
hello, I have a problem... :-( I get a point by muose click, and I need to know if this point is near a chart point (dataset point), see the image : http://www.youimages.org/public/images/151640chart_distanza_dal_punto.gif I have a point and a dataset, there is a way to know the dataset point neares...
- Tue Nov 04, 2008 5:11 pm
- Forum: JFreeChart
- Topic: How to get a point from chart
- Replies: 1
- Views: 2835
Ok I find a way : Point p = getMousePosition(); XYItemEntity entity = null; entity = (XYItemEntity) chartPanel.getEntityForPoint(p.x,p.y); System.out.println("p :" + p); System.out.println("x :" + chartPanel.getChart().getXYPlot().getDataset(entity.getSeriesIndex()).getXValue(entity.getSeriesIndex()...
- Tue Nov 04, 2008 4:35 pm
- Forum: JFreeChart
- Topic: How to get a point from chart
- Replies: 1
- Views: 2835
How to get a point from chart
I have a little problem ...
I have a point in screen coordinates
There is a way to know if this point is in a dataset chart ?
I have a point in screen coordinates
Code: Select all
Point p = getMousePosition();
- Mon Oct 27, 2008 12:09 pm
- Forum: JFreeChart - Stockmarket
- Topic: How to use mouse wheel to zoom in(out) ?
- Replies: 3
- Views: 55662
We use this code public class DefaultChartPanel extends ChartPanel implements MouseWheelListener .... public void mouseWheelMoved(MouseWheelEvent e) { if (e.getScrollType() != MouseWheelEvent.WHEEL_UNIT_SCROLL) return; if (e.getWheelRotation()< 0) increaseZoom(getFocusedChart(), true); else decrease...
- Wed Oct 22, 2008 1:58 pm
- Forum: JFreeChart
- Topic: How to add title in a Legend
- Replies: 2
- Views: 3985
For the legend I try to use the BlockContainer this is the code : LabelBlock labelblock = new LabelBlock("LEGEND", chartfont); labelblock.setPadding(5D, 5D, 5D, 5D); BlockContainer blockcontainer = new BlockContainer(); blockcontainer.add(labelblock, RectangleEdge.TOP); BlockContainer blockcontainer...
- Thu Oct 16, 2008 2:55 pm
- Forum: JFreeChart
- Topic: How to add title in a Legend
- Replies: 2
- Views: 3985
- Mon Oct 06, 2008 9:50 am
- Forum: JFreeChart
- Topic: How to add title in a Legend
- Replies: 2
- Views: 3985
How to add title in a Legend
Hi all,
We have two questions..
1. Can I add more legend in a XYLineChart ?
2. There are a way to add title in a Legend ?
Something like :
many thanks
Luca
We have two questions..
1. Can I add more legend in a XYLineChart ?
2. There are a way to add title in a Legend ?
Something like :
many thanks
Luca
- Fri Oct 03, 2008 10:48 am
- Forum: JFreeChart
- Topic: prob. tick units: set automatically tick & axis step cha
- Replies: 4
- Views: 5064
- Fri Oct 03, 2008 9:25 am
- Forum: JFreeChart
- Topic: prob. tick units: set automatically tick & axis step cha
- Replies: 4
- Views: 5064
Re: prob. tick units: set automatically tick & axis step
2. Just use the defaults, i.e. let the axis decide which tick spacing is the best? :?: The uers can change the tick step in our application, but we need a way to reset the user setting and restore the defaults setting. How can we restore automatically tick spacing ? Is not possible put some marker ...
- Thu Oct 02, 2008 3:03 pm
- Forum: JFreeChart
- Topic: prob. tick units: set automatically tick & axis step cha
- Replies: 4
- Views: 5064
prob. tick units: set automatically tick & axis step cha
Hi, WE have a problem with the tick units.... :-( This is the code: double step = 10.5; // double representing the step int tick = 5; // int representing the tick units String fmt = "0.00E0" //string representing the format if (fmt == null){ format = NumberFormat.getInstance(); }else{ format = new D...
- Tue Sep 30, 2008 1:30 pm
- Forum: JFreeChart
- Topic: XYItemRenderer and setSeriesOutlinePaint not working
- Replies: 9
- Views: 11290
- Tue Sep 30, 2008 11:38 am
- Forum: JFreeChart
- Topic: XYItemRenderer and setSeriesOutlinePaint not working
- Replies: 9
- Views: 11290
I have the same problem : XYLineAndShapeRenderer renderer = (XYLineAndShapeRenderer) chart.getRenderer(); // Set the shape renderer.setSeriesShape(1, symbolRFProp.getSymbolShape()); // Set the color for this series renderer.setSeriesFillPaint(1, symbolRFProp.getFillColor()); // Set the color for sha...
- Wed Sep 17, 2008 9:09 am
- Forum: JFreeChart
- Topic: show and hide the legend in a JFreeChart
- Replies: 6
- Views: 25625
I find a way without change source code: // c is the ChartPanel if (legend == null) legend = c.getChart().getLegend(); boolean showLegend = ((BooleanProperty)showLegendProp).getValue(); if (showLegend) { // Show the legend in the chart and update the properties legend.setItemFont(getFontValueOf(getL...
- Tue Sep 16, 2008 1:06 pm
- Forum: JFreeChart
- Topic: show and hide the legend in a JFreeChart
- Replies: 6
- Views: 25625
show and hide the legend in a JFreeChart
Good morning, We are using a JFreeChart for our applications. We need to show or hide the chart legend, example : boolean showLegend = (BooleanProperty)showLegendProp).getValue(); if (showLegend) { // Show the legend in the chart }else { // Hide the legend in the chart }