display « Axis « JFreeChart Q&A





1. Display non Gregorian dates in X-Axis of a JFreeChart TimeSeries    stackoverflow.com

Assuming by having A Jalali Calendar Class, Is it Possible to use JFreeChart's TimeSeries Chart with Jalali dates? If yes, How? Thanks

2. Simple solution to display just the domain axis    jfree.org

Hi, I want to display the domain axis in a JTable header. I am rendering some graphs in the table. The axis in the table should be a DateAxis. The header will display a range of time based on the current time. Is there a simple solution to render this axis in a table header? I tried to overwrite the draw ...

3. Displaying own dates on X-axis    jfree.org

I also am looking for the same solution. Currently, I have the Tick Unit set to 6 months. It is showing 01/95, 07/95, 1/96, etc... on the X-Axis. I would like it to show the ticks beginning with Dec. 12/94, 6/95, 12/95, etc... How do we customize what dates it shows ?

4. X axis label display    jfree.org

6. displaying string values for items on the X-axis    jfree.org

hi i want to display string values as my X-axis values. I am using an XY-line chart in my application. plz provide me with some sample code for doing this. the code tht im using is as follows: XYSeries series1 = new XYSeries("Survey.."); series1.add(4,2); series1.add(5,1); series1.add(2,6); series1.add(5,4); series1.add(1,4); series1.add(10,4); XYSeriesCollection dataset = new XYSeriesCollection(); dataset.addSeries(series1); PLZ PROVIDE ME SOME HELP

7. Rangeaxis: Ticks not displayed...    jfree.org

I have two value in Dataset e.g. 1st = -2849382715582280D i.e. defaultcategorydataset.addValue(-2849382715582280D, "Series's 1", "Category 2"); 2nd = 3251070542664.21D i.e. defaultcategorydataset.addValue(3251070542664.21D, "Series's 2", "Category 2"); When I create 3D Bar Chart it not showing vertical ticks for this range (i.e. from -2849382715582280D to 3251070542664.21D). Any help for resolving this issue will be highly appreciate.

9. Problem with displaying labels on DomainAxis    jfree.org

Hi! I have created a line graph using DefaultCategoryDataset. The domain axis has numbers from 1 to 52 on it. Only the numbers 1-9 are displayed and the rest get displayed as "..." . If I mess about with the size of the chart sometimes all numbers are displayed. Is there anything I can do to make sure that the chart ...





10. Displaying data on X-axis and Passing Parameters    jfree.org

Hello, I have stacked bar and getting values using sql, I have three columns namely org_id, emp_count and non_emp_count. If I use one more columnm ,y graph is getting changed. What I wanted is I want to add one more column(org_name) and show those values on my X-axis instead of the org_id. The parameter I am passing should be still org_id(category). ...

12. CategoryDataset - stopping domain axis displaying all values    jfree.org

If I should change to a NumberAxis of type Integer; then how could I display as per previous. We are mapping 26 weeks x 7days x 3 - 4 batches a day of data onto 1 report. Then the user can use tool tips to get an exact plot detail. Once again thanks in advance

13. x-axis points are displayed multiple times    jfree.org

Hi, I am using JFreechart to show some graphs in my application. In my graph there are some values on y-axis(eg:34,20,100 etc) On x-axis I am using date/time to be displayed. When I plot the graph, If my x-axis values are : 01/09/2006 12:12 pm, 01/09/2006 12:11 pm, 01/09/2006 12:10 pm, 01/09/2006 12:10 pm. Each and every date/time is displayed multiple ...

14. x-axis points are displayed multiple times    jfree.org

Hi, I am using JFreechart to display some graphs in my application. When I am plotting the X-axis values I am finding some issue. Here is the issue. On my x-axis, I am using Date/Time to be displayed. Assume that I have date/time as 01/09/2006 12:12 pm, 01/09/2006 12:11 pm, 01/09/2006 12:10 pm 01/09/2006 12:09 pm. When I plot the graph,each ...

15. How to Display String data on both axis in Bar/Line charts    jfree.org

Hello EverybODY !!!! I m new to Jfreecharts , may be my question is stupid ?? But please Help me.. i want to display String data on both axis for using Bar charts or Line Charts e.g X axis : Prod desc Y axis : Station Type Desc .. Thanks In Advance

16. Using the LogarithmicAxis class to display a price chart    jfree.org

by mhilpert Wed Feb 15, 2006 12:02 pm Here's the method I use to switch to a percentage axis: Code: Select all /** * Replaces an axis with a logarithmic (percenatge) axis. * * @param chart JFreeChart. ...





19. Get axis value displayed    jfree.org

Hello , i would like to know if there are methods to get the value of the horizontal axis ( beginning and end values of the graphic )displayed after a zoom/dezoom . I saw that there were methods like getMinimumHorizontalDataValue or getMinimumDomainValue that refers to the maximum and minimum values in all the datas , but not just on the ones ...

20. selectively display DomainAxis values    jfree.org

Hi, I am rendering a DefaultCategoryDataset using a a BarRenderer and would only like to display the very first and very last Category Label (i.e. the label for an actual Bar). Is it possible to use a specific Axis class to do this or is the only way to leave the values out of the dataset to begin with. Cheers, nick ...

21. Y axis display    jfree.org

Based on the data received from a user, the y axis will display a range of 1-5. If the user has not scored 5 on any particular area the graph or y axis will only display the highest value, ie 4. I need the y axis to display a range of 1 to 5 irrespective of the highest rating given by ...

22. Problem for displaying tick without label on axis    jfree.org

Ok, thank you for your answer David, i'll have a look at this method source to see how to do it. But, is there a way to simply specify the first displayed date so that i can have a 17 as first date instead of 20 as on my example? Or do i need to extend DateAxis for this too?

24. Constraining display area of an axis    jfree.org

Constraining display area of an axis by dleppik Tue Nov 14, 2006 6:45 pm I would like to display a dual-axis chart in price/volume style to an audience which is unfamiliar with the price/volume format. I would like to constrain the height of the volume axis to make it clear that the bar chart goes with the right axis; currently, ...

25. Display ticks on DateAxis    jfree.org

Display ticks on DateAxis by HauTruong Tue Dec 12, 2006 8:30 am Hi, I have a small problem as follow: I want to display inequidistant ticks on DataAxis. ex: If display equidistant tick marks as: 01/10, 04/10, 07/10, 10/10 <= it is ok However, all I want is display tick marks as: 01/10, 05/10, 12/10, 19/10, 22/10. Now, I am ...

27. TimeSeries Chart X-axis Display    jfree.org

Hello, I am pretty new in JfreeChart. I have been working on it last few days. I need help for displaying time interval in x-axis. I want the time interval starts with 00:00:00 up to 25 minutes(finishes 00:25:00) . But when I try to display the chart in Millisecond it starts with the current system time. My input file is like ...

29. want to customize display of X-axis value    jfree.org

I have an area chart that plots values for each month of a year for three/four previous years. While I want to retain the values for each month, I want to display only the first month along with year (Eg jan/04, jan/05 etc) on the x-axis. I tried removing the remaining months while populating the dataset, but the values are lost ...

30. Displaying date in x-axis from a JDBCXYDataset    jfree.org

Hi I'm using a JDBCXYDataset to store data from a query on a MySQL database connection. I want to use this data to plot a TimeSeries chart but it always sets the date as a default date, i.e, starting from 1970. The query is soposed to take a date variable and then other numeric data. How can i use the date ...

31. Crowding of labels on X-axis , labels not displayed    jfree.org

Crowding of labels on X-axis , labels not displayed by harijay Fri May 04, 2007 7:58 pm Hi I am a beginner to the JfreeChart API. I am trying to make a Bar chart plotting a number of Y values ( the number of posts on my blog) versus the number of weeks in a year 52) WHen I try ...

33. Manually-specified Y-axis tick labels not always displayed?    jfree.org

I'm using JFreeChart 1.0.5, creating a XYPlot. I did a search of topics for something similar, but didn't find anything. I want to specify the Y-axis tick labels (only the min/max values), not have them auto-generated. I have (3) different possible min/max ranges for my Y Axis, depending on the source/type of data I'm displaying. One range is 0-91, another is ...

34. Decimal values not being displayed on range axis!    jfree.org

Hello everyone, Great work on this product! Being a chart newbie, I cannot seem to find a simple answer to this problem. I presently return values from a query to be displayed via a simple XYSeries in a XYStepChart . These values fall between 0 and 1 (i.e. 0.001, 0.0089, etc.). I can get the chart itself to generate properly, etc. ...

35. displaying Y-axis dynamically    jfree.org

Hi All, I have a problem while displaying the Y-axis scale. Currently we are displaying the chart using the NumberAxis for Y- axis.i need to dynamically display the Y-axis based on the input values. Eg.,when we are getting the data in between 10:00-11:00 daily then I need to display only 10:00 and 11:00 on Y-axis. for the next time if we ...

36. Y axis of chart displays values in decimal    jfree.org

Hi! I am using the c:chart tag to display a clickable chart(JFree). The Y axis of my chart denotes the number of people in a particular category. Since, this number can never be in decimal I want only whole numbers to be displayed on the Y axis. Currently the number of divisions on the Y axis and the difference between each ...

38. The right-most tick label of x-axis not displayed    jfree.org

Hi, In my one-series line chart, I have 36 data items. I specify dateAxis.setLowerMargin(0.0); dateAxis.setUpperMargin(0.0); The first tick label shows right under Y-axis, which is perfect. And all other subsequent 34 tick labels display fine. But the last (right-most) tick label does not show. What am I missing here? Any hint or help would be appreciated. Thanks! Hans

39. How to broaden y axis value display?    jfree.org

Hi, I've a question. I'm working on using the Jfreechart for the applet application. I'm using XYPlot and for the domain & range, I'm using NumberAxis. NumberAxis domainAxis = new NumberAxis("Time"); NumberAxis rangeAxis = new NumberAxis("Meter"); When I display it, the value displayed on the rangeAxis is big, something like 129845523523.232 129845523523.231 129845523523.229 129845523523.228 ... And I can't see the first ...

40. Y-axis not displaying value    jfree.org

41. Display axis label but no axis values    jfree.org

Hi, I'm just wondering if there is a way to only display the label on an axis but not the axis values on a timer series plot. The following commands remove both the label and the axis values. chart = ChartFactory.createTimeSeriesChart( "Title ", //title "Time", // x-axis "Kg/Hr", // y-axis dataset, true, // show legend true, false ); plot = chart.getXYPlot(); ...

42. Display Axis inside Dataplot    jfree.org

43. axis label display issue    jfree.org

Hi All, I am working with an XYPlot and I have noticed that when the chart is displayed such that the domain axis is relatively wide and the range axis is relatively short, the axis label text is displayed with these proportions also (often to the point of being unreadable). Does anyone know of a workaround so that the text will ...

47. display very small numbers at axis    jfree.org

This works for numbers greater than about 10e-7. For lower values the same thing happens: 00.0E0 is displayed. It can also happen that just nothing is displayed at the axis if i zoom in a little bit more. Is there any rounding issue? Can i force the chart to use full double precision?

48. Check box to toggle display of range axis    jfree.org

I am building a multiple axes line chart and I was wondering if it is possible to have a check box for each range axis that toggles between showing and hiding it. For example, I have a line chart displaying 3 different range axes and one domain axis. There will be 3 different check boxes, one for each range axis, and ...

51. how to display grid and axis labels for a spider web    jfree.org

Hello, I'm looking for the same features: grid and scale-values in a spider web chart. I found that the polar chart includes a grid and scale but for a polar char you need a xy-dataset so that won't work for categories based data. Is there any update or progress on including grid/scale into spider web charts? TIA, Quota

52. Time Series charts does not display all the X-axis intervals    jfree.org

Time Series charts does not display all the X-axis intervals by srinivasa.vydyula Sat Dec 06, 2008 6:19 pm Time Series charts does not display all the X-axis intervals, which the attached query returns: We are currently evaluating the jasper server, to incorporate into our application. Through iReports 3.0.0 designer, I am using time series charts to display stacked line chart. ...

53. axis_Y display String    jfree.org

54. date display from Y axis    jfree.org

I think to achieve this you'll have to do two things. (1) set the lower margin on the axis to 0.0. (2) override the refreshTicks() method to force JFreeChart to label the lower bound of the axis (the existing code puts labels at regular intervals on the axis, but these might not fall on the lower and upper bounds of the ...

55. Display date in y-axis    jfree.org

56. Display Percentage/Dollar Sign in Range Axis values    jfree.org

NumberFormat nf = NumberFormat.getInstance(); nf.setMaximumFractionDigits(2); nf.setMinimumFractionDigits(2); if(nf instanceof DecimalFormat) { ((DecimalFormat)nf).applyPattern("$"); ...

57. How to display a DateAxis starting from January to December    jfree.org

Hi all, I have a problem, on my TimeSeries chart i use a DateAxis on the x-axis, currently the values areDecember to January, however, data is plotted on the chart from Januray to December. Therefore the first and last January and December respectively are unnecessary. Please show me how to remove them. Thank you.

60. Display only discrete pow10 labels on LogarithmicAxis    jfree.org

Display only discrete pow10 labels on LogarithmicAxis by brimborium Mon Dec 13, 2010 11:28 am Hi there, I am currently working on a GUI that - besides other things - displays plots in frequency range. For that I used a JFC XYPlot (JFC 1.0.13)and added a LogarithmicAxis for the x-Axis. Unfortunately there seems little to no way of controlling the ...