Search found 13 matches

by pdvmipv
Tue May 25, 2010 9:12 am
Forum: JFreeChart
Topic: 7 pstd 1 diagram
Replies: 0
Views: 2524

7 pstd 1 diagram

Anyone have idea how can I implement with JFreeChart a diagram like this? Image

Thanks
by pdvmipv
Thu Nov 19, 2009 4:10 pm
Forum: JFreeChart
Topic: Zoom doesn't display lines if no points inside zoom area
Replies: 4
Views: 8220

Re: Zoom doesn't display lines if no points inside zoom area

I'm using jfreechart-1.0.13, the problem persists even if I put the setDrawSeriesLineAsPath to false
by pdvmipv
Thu Nov 19, 2009 10:02 am
Forum: JFreeChart
Topic: Zoom doesn't display lines if no points inside zoom area
Replies: 4
Views: 8220

Re: Zoom doesn't display lines if no points inside zoom area

In my code I've used this renderer: renderer = (XYLineAndShapeRenderer) plot.getRenderer(0); renderer.setDrawSeriesLineAsPath(true); plotDataset.addSeries(serieDati); renderer.setSeriesShapesVisible(nserie, false); renderer.setSeriesPaint(nserie, Color.BLACK); renderer.setSeriesStroke(nserie, new Ba...
by pdvmipv
Wed Nov 18, 2009 4:19 pm
Forum: JFreeChart
Topic: Zoom doesn't display lines if no points inside zoom area
Replies: 4
Views: 8220

Zoom doesn't display lines if no points inside zoom area

I've added some XYseries in a XYSeriesCollection on a XYLineChart.
Zoom doesn't display lines if there aren't points of the XYseries inside the zoom area, even if a line (between two point outside the area) intersect the Zoom Area.
by pdvmipv
Tue May 12, 2009 10:11 am
Forum: JFreeChart
Topic: XYPointerAnnotation not primary dataset
Replies: 4
Views: 6071

Re: XYPointerAnnotation not primary dataset

Ok, perfect!

Thanks
by pdvmipv
Mon May 11, 2009 3:11 pm
Forum: JFreeChart
Topic: XYPointerAnnotation not primary dataset
Replies: 4
Views: 6071

Re: XYPointerAnnotation not primary dataset

Ok, it works prerfectly,
thanks

but now i can't retrieve the list of annotation added to the renderer,
becuase from XYPlot.getRenderer.getAnnotations() doesn't exist a function similar to XYPlot.getAnnotations()

Are there any method to give this informations?
by pdvmipv
Mon May 11, 2009 1:34 pm
Forum: JFreeChart
Topic: XYPointerAnnotation not primary dataset
Replies: 4
Views: 6071

XYPointerAnnotation not primary dataset

Hi i have a problem to add an annotation relative to a dataset that isn't the primary. Imagine a xy plot where I plot, for example, two datasets with the same x axis and two different y axis. Then I want to draw an annotation for the two different dataset. When I click with the mouse on the plot of ...
by pdvmipv
Mon May 11, 2009 12:53 pm
Forum: JFreeChart
Topic: ChartEntity problem cast to XYItemEntity jfreechart-1.0.13
Replies: 4
Views: 8507

Re: ChartEntity problem cast to XYItemEntity jfreechart-1.0.13

Ok resolved as coded below. Thanks :) // 1.0.12 Version // XYItemEntity entity = (XYItemEntity) viewerPlot.getChartPanel().getEntityForPoint( // event.getTrigger().getX(), event.getTrigger().getY()); // Integer indexOfAxis = 0; // if (entity != null) { // indexOfAxis = viewerPlot.getIndexDataset((XY...
by pdvmipv
Mon May 11, 2009 8:31 am
Forum: JFreeChart
Topic: ChartEntity problem cast to XYItemEntity jfreechart-1.0.13
Replies: 4
Views: 8507

Re: ChartEntity problem cast to XYItemEntity jfreechart-1.0.13

ok but, with the old version the code: viewerPlot.getChartPanel().getEntityForPoint(event.getTrigger().getX(), event.getTrigger().getY()); return a XYItemEntity, in the new version the type is PlotEntity. What can i do? I need to use the function entity.getDataset() , and i can only have with XYItem...
by pdvmipv
Fri May 08, 2009 12:38 pm
Forum: JFreeChart
Topic: ChartEntity problem cast to XYItemEntity jfreechart-1.0.13
Replies: 4
Views: 8507

ChartEntity problem cast to XYItemEntity jfreechart-1.0.13

Hi i hava problem to make cast from ChartEntity to XYItemEntity with the last release of Jfreecharrt (1.0.13). Following the code working fine using Jfreecharrt 1.0.12 XYItemEntity entity = (XYItemEntity) viewerPlot.getChartPanel().getEntityForPoint( event.getTrigger().getX(), event.getTrigger().get...
by pdvmipv
Thu Mar 20, 2008 2:46 pm
Forum: JFreeChart
Topic: Starting X Axis with tick and negative value
Replies: 5
Views: 9818

Hi David, as nobody seems to have an answer to my probleme, I try to ask you directly if you can suggest me a way to perform what I am asking for. I am not asking a complete code listing but a suggestion to
resolve my needs.
Thanks
by pdvmipv
Wed Mar 19, 2008 8:29 am
Forum: JFreeChart
Topic: Starting X Axis with tick and negative value
Replies: 5
Views: 9818

To be more clear Xmax=27506 Xmin=-7207 Delta Tick=(27506+7207)/10=3471.3 I expected to obtain a graphics with the X scale drawed like the following: 0 !---------------!-------------!--------------!-------------! -7207.......-3753.7.....-264.4........3206.9......6678.2 but I obtain the following with...
by pdvmipv
Tue Mar 18, 2008 11:59 am
Forum: JFreeChart
Topic: Starting X Axis with tick and negative value
Replies: 5
Views: 9818

Starting X Axis with tick and negative value

Problem Description Xmin and max values : scalaMinX= - 7207 scalaMaxX= 27506 dimX=10 I draw the axis using the following sequence ...... NumberAxis domainAxis_x = (NumberAxis) plot.getDomainAxis(); domainAxis_x.setStandardTickUnits(NumberAxis.createIntegerTickUnits()); domainAxis_x.setRange(new Rang...