DomainAxis « Axis « JFreeChart Q&A





2. problem about two DomainAxis!    jfree.org

problem about two DomainAxis! by bit_troy Fri Mar 17, 2006 7:38 am how can i get two different DomainAxis? the following is about to make a chart with two different DomainAxis,but i get the same DomainAxis on bottom and top.why? Code: Select all import java.awt.Dimension; import javax.swing.JPanel; import org.jfree.chart.*; import org.jfree.chart.axis.AxisLocation; import org.jfree.chart.axis.CategoryAxis; import org.jfree.chart.axis.CategoryLabelPositions; import org.jfree.chart.axis.NumberAxis; import org.jfree.chart.plot.CategoryPlot; import ...

4. DomainAxis Problem    jfree.org

5. TimeSeries Chart with domainAxis.setInverted(true)    jfree.org

Hello, I'm having trouble reversing the axis labels of a TimeSerieschart and hope someone can spot the problem. I'm using jfreechart-1.0.2. With domainAxis.setInverted(false) everything is fine, the month labels Apr through Sep display left to right. With domainAxis.setInverted(true) the month label only displays Sep (on left side) no other months display. The line graph does correctly display reversed, it is just ...

6. DomainAxis comparable to label    jfree.org

Hi I am currently trying to implement a linechart, but this also applies to other charts. I just realize that my labels are not unique so can't be used as the comparable that goes into the dataset. I need to then add a unique code, which I have available, and add a mapping to the label afterwards. I have successfully done ...

7. Adjusting DomainAxis    jfree.org

Hi all, I'm new to JFreechart and am trying to configure my way around a small demo for a client. One of the requirements from them is that the X-Axis be fixed to an upper range of 40 000. If I do this using upperBound it all works but I seem to be losing a few 0's on the left hand ...

8. DomainAxis grid interval    jfree.org

Hi, I'm making lots of progress getting up to speed with JfreeChart. One last thing I need to demonstrate is a variable number of grid lines along the x-axis. I currently have a range from 0 - 40 000 whereby automatically 8 grid lines are generated. Where does this value 8 come from? Can I alter this value -> 10 or ...





10. Problems with DomainAxis    jfree.org

Hello, Im using a connection DataBase to obtain CategoryDataset. So I create a chart (ChartFactory.createLineChart) and I customize range axis but Ive problem with domain Axis. CategoryDataset ds1=createDataset(); JFreeChart chart1 = ChartFactory.createLineChart("xxxx", "Fecha", "Velocidad m/s", ds1, PlotOrientation.VERTICAL, true, true, true); CategoryPlot plot = (CategoryPlot) chart1.getPlot(); NumberAxis range = (NumberAxis)plot.getRangeAxis(); range.setRange(0,25); range.setTickUnit(new NumberTickUnit(5)); CategoryAxis DomainAxis=plot.getDomainAxis(); DomainAxis.setLowerMargin(0.01); DomainAxis.setUpperMargin(0.01); There are more points (300) ...

11. DomainAxis    jfree.org

12. DomainAxis Tick Update    jfree.org

13. CombinedDomainXYPlot: repeat DomainAxis    jfree.org

by david.gilbert Tue Sep 30, 2008 9:14 am I took a look through the CombinedDomainXYPlot code and it seems that it assumes just a single axis. Here's a quick hack that seems to make it work, but without further testing I'm not sure if this breaks anything: Code: Select all ### Eclipse Workspace Patch 1.0 #P jfreechart-clean Index: source/org/jfree/chart/plot/CombinedDomainXYPlot.java =================================================================== ...

14. modify DomainAxis ticks    jfree.org

Hi and thanks in advance for any help. I have an int array whose indexes represent bins of time; for example there are 288 5 minute intervals in 24 hours so an array of bins[288] would have a count in each index with 0 being the start of time and next index would be a 5 minute interval with a count ...

15. Fixed Time-Scale in the DomainAxis    jfree.org

Hello, I am trying to work with a TimeSeriesChart. I need to have fixed x-Values (Time-Values), for example: 1s. First question: Can I set a fixed TickUnit?!? Specifically I want to define the Grid and have a Grid-Line always in a fixed Time-Value (1s). No matter if I change the size of the Panel, I need to know that between two ...

16. StackedXYBarChart (Version 1.0.4) Inverted Domainaxis Bug    jfree.org

Hi All, I am facing a problem with the StackedXYBarChart (Version 1.0.4) Inverted Domainaxis problem. The chart was plotted fine with the Vertical orientation with domainaxis inverted. But with Horizontal orientation, the domainaxis will have a wrong autorange where the range start X and end X value increased by 1. E.g. the stackedXTbarchart should plot from x-axis range from 130 to ...





17. Help in using the code to skip the labels on domainaxis    jfree.org

Help in using the code to skip the labels on domainaxis by inder14 Sun Jul 12, 2009 1:25 pm jsaiz wrote: Below is the class that derives from CategoryAxis. NOTE: This class has a drawback, in that it does not display tooltips on the tick labels. This is because drawCategoryLabels method prepares tooltips, but it has not access to CategoryAxis' ...

18. DomainAxis maximum tick count    jfree.org

Hi everyone, I'm using a timeSeriesChart showing two dataset linked to two NumberAxis. My first dataset is a timeCollection of DAY point. The second is a timeCollection of YEAR point. JFC display on the x-axis a certain amount of date (2006,2006,2006,2007,2007,2007,....). I would like to display only the year once for all the time range (2006,2007,2008,2009,2010). Can someone help me with ...