X « Axis « JFreeChart Q&A





1. Setting JFreeChart / Cewolf X Axis Interval    stackoverflow.com

I am trying to display some charts on a web app that has data for every minute. The problem is when I try to view an hours worth of data ...

2. rang Axis X & tickLabel    jfree.org

Hi on a axis, how can I change the tickLabel that are diffents from the real values? my Axis X is based on date of year that have 3 possibles: - week (1 -> 52 or 53) - month (1 -> 12) - quarter (1 -> 4) the problem occurs if the rangs are over on 2 years for ex: the ...

4. Hide some of the ticks on x axis - how to ??    jfree.org

Hi: I have created a graph that shows some data for the past 24hrs. My req. is to be able to show vertical gridline and HH:mm:ss mm-dd-yy ticklabel for the point when date changes (that is at 00hrs which will surely be there exactly one in 24hrs interval). For all other times in past 24hrs i need to show only the ...

5. X axis label (with tick marks) and gridlines disappeared    jfree.org

I am trying to generate a large XYPlot and used ChartPanel.setMaximumDrawWidth to increase size of the chart. The size of the chart increased, yet the X axis label and gridlines disappeared. Does anyone have any suggestions on how to get them back (besides taking out ChartPanel.setMaximumDrawWidth)? I've tries setting gridlines visible, setting the axis label visible, etc. to no avail. Thank ...

6. description for x -axis    jfree.org

Hi , I use a CombinedPlot and my problem is that i want to use only 1 description from my subplots for main description not both. For example i ve "Category 1" , "Category 2" for my first subPlot and also "Category 1" and "Category 2" for my seccond subPlot. That means my chart Shows my "Category 1" , "Category 2" ...

7. How to hide X Axis labels ?    jfree.org

9. I want two labels on X axis    jfree.org





10. Help! x axis ticker shifts when using setFixedAutoRange    jfree.org

NumberAxis xDomain = new NumberAxis(); NumberAxis yRange = new NumberAxis(); XYPlot plot = new XYPlot(); plot.setDataset(mDataset); plot.setDomainAxis(xDomain); plot.setRangeAxis(yRange); xDomain.setFixedAutoRange( 16 ); xDomain.setStandardTickUnits(NumberAxis.createIntegerTickUnits()); xDomain.setLowerMargin(0); xDomain.setUpperMargin(0);

12. how to mask X axis values ?    jfree.org

Hi, there, to mask the value on the X axis and not have to graduation on that axis, simply go to - NumberAxis.java and search for "protected List refreshTicksHorizontal" - Then go to : if (count <= ValueAxis.MAXIMUM_TICK_COUNT) { for (int i = 0; i < count; i++) { double currentTickValue = lowestTickValue + (i * size); String tickLabel; ......... - ...

13. JFreeChart - User defined X -axis values    jfree.org

Hi all, I am new to JFreeChart. I created dataset like below, I am getting the graph but the problem is on the X-axis it displays from 01/01/2006 to 01/05/2006 around 9 values. I don't want to display all these values, I need only 5 dates which I entered on the X-axis regardless of same intervals. Is there any way ??? ...

14. X axis cut off    jfree.org

15. XYVericalBar - x axis    jfree.org

www.jfree.org View topic - XYVericalBar - x axis www.jfree.org Free Java software for data analysis and presentation Skip to content Advanced search Board index JFreeChart JFreeChart - General Change font size FAQ Register Login XYVericalBar - x axis A free public discussion forum for the JFreeChart class library. Post a reply 1 post Page 1 of 1 ...

16. xyverticalbar - how to set double values of x axis    jfree.org

xyverticalbar - how to set double values of x axis by adria60 Wed Oct 04, 2006 3:06 pm I just started using Java Graphs - Cewolf. First I created a xybarvertical chart as Java application, using data from the class. And it is working fine. Now I created a xybarvertical chart using Cewolf in jsp (Eclipse + TomcatApache) and retrieving ...





17. Non-numeric x axis labels on scatterplot    jfree.org

Hi david, I recently faced the same problem what pankaj faced. I have a scatterplot and i want non-numeric values for the x-axis. I cant use category plot as i have to use XYLineAndShapeRenderer. Whereas using SymbolAxis makes most of my values disappear. How to use SymbolAxis for XYPlot correctly? Thanks in advance. -kash Thread continued .... -------------------- Hi Friends I ...

18. X axis on the top    jfree.org

Hi, I would like to create a chart which has X axis on the top, instead of at the bottom. What I found from the examples is to create a lineChart (from lineChartDemo5). But on its chart, the Y axis is in category -- I want it to be numeric. Do I have to use XY charts and is there any ...

19. Values on the X axis appear as three dots    jfree.org

I use the regular line chart in a web application.The x-Axis display years and the y-Axis display a number of accidents that happened in that year. When the period of the chart is large for example (20 years), the x-Axis dont display years number instead it display three dots,because there is no space to display year numbers. When the number of ...

20. How to show values on X Axis for every point on chart    jfree.org

by default ; chart mark ticks on both axes. JFreeChart suppose marks following points on the X axis which is DateAxis : 1st Jan, 3rd Jan, 5th Jan. Now if suppose a point is added on the chart for 2nd Jan. I want to hide default ticks above which I can easily do . But I also want to show 2nd ...

21. Change the values at the X Axis    jfree.org

Hi all... I have a chart with one XYSerie wich values are (0,33),(50,120),(100,89)... the X values of this serie have always a space of 50 units between them. But i want to show different values at the plot like (for the example above) 100, 250, 125 instead of the 0, 50 and 100 without changing the original values of my serie ...

22. How to add X axis label to chart    jfree.org

Hi I have charts with a y and x axis. The X axis show the values, which are percentages. How do i create a axis label for this to read Percentage? I have tried to do this using a text box but the problem i get is that the label appears in the same location for all charts. Therefore, in one ...

23. StackedXYAreaChart, TimeTableXYDataset, and x axis    jfree.org

Hello all, JFreechart seems excellent thus far. I'm having a bit of a problem with creating a stackedxyareachart from a timetablexydataset right now though. It's almost assuredly a lack of understanding on my part but I would appreciate any information that might be able to set me straight. What I'm tring to accomplish is to show the past 24 hours in ...

24. how to set x axis value in cewolf    jfree.org

hi can any one help me to set xaxis max value to 100 or any values. i am generating a vertical bar chart in my jsp. it shows the chart for max value(dynamic). i want it to display for 100.. can any one help me out in solving this prblm regards -venkat

25. how to increase the distance between items on x axis barchar    jfree.org

how to increase the distance between items on x axis barchar by slonce Fri Jul 06, 2007 12:00 am hi, im pretty new to jfreechart and I have the problem of representing many items on the X axis in VERTICAL ORIENTATION but it seems i can not get the correct distance so the numbers will be visible im getting 1,2 ...

26. increase marging between labels on X axis?    jfree.org

increase marging between labels on X axis? by slonce Sat Jul 07, 2007 9:35 pm Hi again, my third time is there any way so I can increase the margin between labels on the axis so I can show 200 items on the axis ? How can I represent so many items effiecently, since everything that I tried im getting ...

27. Changing X axis position    jfree.org

Hi there. I'm working on a project where I need to display temperature in function of deep. My x axis represents my temprature while y axis is the deep. I would like to setup my axis so my x axis is up top the chart. The 0,0 would be uper left of the chart. I'm using a XYLineChart. ------------------------------------ ...

28. Chart X and/or Y-axis    jfree.org

For some of the charts I am creating, when the values become very small (i.e. xxxE-9, xxxE-12) the scaling on the charts vanishes. Boxes/lines/etc are plotted correctly in the picture, the axis labels vanish. Is there some way in jfreechart to make the domain/number axis and/or the renderer handle really small values properly on the axes? Or is there something I ...

30. Calculations of x- and y-axis value from left- and top-pixel    jfree.org

Suppose I have a xy plot generated from JFreeChart. It has size 500X500 pixel. Can I figure out the x-axis value and y-axis value from a point on the image (for example the dot at left 320 pixel and top 252 pixel)? I am also interested in reverse case. If I knows an actual data point (10, 25) on x- and ...

31. X Axis labels    jfree.org

33. XYBarChart with integer x axis    jfree.org

34. Hour Tick on the x axis    jfree.org

Here's the code Code: Select all TimeSeries sessionPlotted2PrimaryAxis = new TimeSeries("Session",Hour.class); for(int i=0; i

35. Starting X Axis with tick and negative value    jfree.org

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 Range(scalaMinX, scalaMaxX)); domainAxis_x.setFixedAutoRange(scalaMaxX - scalaMinX); domainAxis_x.setAutoRangeIncludesZero(false); domainAxis_x.setTickUnit(new NumberTickUnit((scalaMaxX - scalaMinX) / dimX)); The result is to have an axis with the first tick positioned not at the beginning of the axis with ...

36. X axis location    jfree.org

Hi I'm trying to change the x axis to top of the graph. It by default comes at bottom. Can any one help me in this? My code for creating the graph is as below. JFreeChart chart = ChartFactory.createTimeSeriesChart( "", // Title "", // x axis label "in local currency in thousand", // y axis label dataset, // Data true, true, ...

37. String values in X axis    jfree.org

Just you can imagine the XYLineChart. It is very same. The only difference between the XYLineChart and line chart in MS Excel is that, you can give fixed string constants in X axis in MS Excel Line chart. But in XYLineChart, the series.add() method doesnt support any string arguments.. Just imagine this scenario : student names and their marks in a ...

38. Customize x- axis in dateAxis    jfree.org

Hello all, I have 2 questions related with customization in x-axis when using dateAxis and timeSeries. 1) I want to mark the beggining and ending tick. Is it possible? If this requirement cannot be done, what class do I have to extend? I 've seen this issue in others posts with no answer, that's why I'm asking again here (sorry if ...

40. Can jfreechart show the point's information on the x axis    jfree.org

I have a puzzle in my project. There are a lot of points to be printed by jfreechart. Each point has three Attributes. Like in below: point_1{10[x axis], 20[y axis], 20080808[point's infortmation]}, point_2 {...} ... I want the result chart shows like in below: y axis ^ | . 20 | . | |_____________________________> x axis 20080808(10) 20080908(...) The value in ...

41. Unwanted Repetition of values in X axis    jfree.org

Hi, I am using jfreechart 0.9.20 and plotting time series charts. I am using DateAxis on X axis.(e.g 2008-01,2008-02,2008-03 and so on) If the number of datapoints are very less( less than 10), the X axis is repeating the labels(2008-01,2008-01,2008-02,2008-02 .. and so on). However datapoints on graphs are coming fine on X-axis. This repetition may increase as datapoints decreases If ...

42. not able to read x axis labels in Vbar chart    jfree.org

Hi, i am using jfree chart for drawing Vbar chart, where it has date and time in x axis.. it plots the chart properly, but displays the x time values for all data points which are not readable. it shows like , "wed N.." ( for wed nov 5). we have hourly, daily, weekly and monthly charts. i would like to ...

43. X Axis Problems    jfree.org

44. X Axis on XYAreaChart    jfree.org

Hello everybody, I'm searching for a solution that in my X Axis the Date gets shown as a Timestamp from a database. Like: 07/12/2008 12:32:22 I have tried with the new Day() but that does not take the time so I ask if there is a solution for my problem or not...... Thanks MoresJ

45. 3DBarChart x Axis problem 3D rendering    jfree.org

Greetings! I'm a new user of JFreeChart. I'm working on old project, which uses JfreeChart library 1.0.6 and jdk 1.3, so i would like to know which is the latest compatible version of jfreechart... i would like to update if it is possible... I have developed an interface java project to make userfriendly this library to the other java developer in ...

47. specific values on the axis x    jfree.org

Hi, I need to show specific values in the x axis. I have these values: TimeSeries s1 = new TimeSeries("line 1 ", Month.class); s1.add(new Month(2, 2001), 131); s1.add(new Month(5, 2001), 167); TimeSeries s2 = new TimeSeries("line 2 ", Month.class); s2.add(new Month(2, 2001), 151); s2.add(new Month(5, 2001), 167); But the chart also shows the date 03-2001, 04-2001 in the x-axis. I want ...

50. X axis ticks mismatch in DateAxis    jfree.org

Hi all , I am using Jfreechart for the 1st time . I have some data generated on evry monday which shows the total disk usage of previous weak for 5 applications. now i want to create a chart to plot the usage against the dates(mondays as i mentioned) Say for example on 11/07/2009 ( dd/mm/yy) data is 120 mb and ...

51. Using month names as X- axis values for TimeSeries chart    jfree.org

Hi all, I am faced with this problem. My X-axis currently has month values with years attached to them,e.g "May-2009" but i want it to be "May" as in the month name alone. The code that I use for this is series1.add(new Month(Month.MAY, 2009), Integer.parseInt(table.getValueAt(lastRowIndex + 2, 1).toString())); is there a way I can achieve this? Thanks all in advance.

53. How to stop X axis autorange on a XYArea Chart?    jfree.org

I have a XY Area chart that I want to chart with X values of [.01 .25 .50 .75 .95 .99 1]. Even with autorange set to false, the X axis still goes incrementally from [0, 0.1, 0.2, 0.3,....0.9, 1]. A) How do I stop it from doing this? If I choose a line chart it doesn't do this. B) How ...

54. skip label on x axis    jfree.org

55. Milestone Trend Analysis - x axis on top    jfree.org

OK. thanks. Could you please tell me how I can add Dates to x and y value. In an TimeSeries for example I can only add a Date to the first parameter of the add method. The second value is a double value. Here I need a Date value too. Could you tell me how to do that? Summary: I need ...

56. Change Value of the X Axis with a CategorAxis    jfree.org

Hi, I've created A barChart with this : Code: Select all DefaultCategoryDataset dataset = new DefaultCategoryDataset(); for (int i=0; i

57. x axis label repeating    jfree.org

58. Selected Values on X Axis    jfree.org

Hi All, i am new to jfree. i am plotting a graph between date and a % score. i am able to plot it but want to do an enhancement. i want to list only those point on x axis that have matched values. Eg -- (01/12/2010,1.0),(04/12/2010,2.0),(10/12/2010,3.0),(20/12/2010,4.0) are the combinations to be plotted. I want the xaxis should only show these ...

59. JfreeChart Need to Change X Axis Values...StepChart    jfree.org

Hi Everyone.. This is Shajuu from Asia,I am new to this forum and New to Jfreechart,Iam facing problem to dram a chart, the problem is in X axis values are in powers like 10^0,10^1,10^2...like this ...so each seperate cells change when it reaches powers...iam facing problem here.. Need Suggestion how to proceed... Regards Shajuuu

60. grouping the x axis with month and week    jfree.org

I just tried both axes, and none of that wil do what you want. If you want to plot date dependent values, you might be better off using an XYPlot. If you do so: In order to show the x-axis split both into weeks and months, you could use two instances of DateAxis and make sure that they have the same ...

61. Jfree x axis    jfree.org