tick « Component « JFreeChart Q&A





1. need to configure tick values    stackoverflow.com

i have a range of 222 to 486 on domain-axis and I want that tick units should differ by 57.2 and should appear as 222 ,274.8 ,327.6 ,380.4 ,433.2 ,486 but they ...

2. JFreechart get grid display dimension    stackoverflow.com

How can I get the DISPLAY dimensions of my grid squares in an XY plot. I can get the tick unit, but because the plot axis is adjusted to fit the ...

3. First and Last Tick    jfree.org

Hi, I am plotting my graph with a XYPlot and two DateAxis. I would like to know how it is possible to plot the first tick and also not the last one ! Here what I have now | | | | | | --------------------------- 5 10 15 20 25 And I would like to have | | | | | ...

6. Marking range of values with one tick.    jfree.org

Hi all, i am using jfreechart 0.9.21. can anybody help me out with my problem. String val[]={"A","B","C"}; NumberAxis numberaxis = (NumberAxis) xyplot.getDomainAxis(); SymbolicTickUnit tickUnit = new SymbolicTickUnit(1,val); numberaxis2.setTickUnit( tickUnit ); how can i mark a tick using SymbolicTickUnit for a range of values. suppose i would like to mark a tick "A" for the values range between 1-10. and "B" for ...

7. Want to show only one tick mark per month    jfree.org

Hi, I'm expermenting with the TimeSeriesChartDemo1 class by changing the source and recompiling to get a feel of what JFreeChart can do. One thing came up that I can't find how to fix in the documentation. I changed the createDataset method to add only two months per TimeSeries and recompiled and ran. The domain axis now shows two months with 4 ...

8. tick units automatic again    jfree.org





10. Tick Interval with 2 decimals instead of 3 decimals    jfree.org

Hi, I am feeding the range axis with values like 0.5, 0.45, 0.60 ... all with 2 decimals. Now, the generated chart has tick interval with 3 decimals: 0.000, 0.250, 0.500 and so on. I would like to know if there is a way to set the number of decimals to be used in the tick interval, so I can display ...

11. AGAIN: Problem with tick unit collection    jfree.org

hi... first of all thank you david for the reply... i was struggling with this since morning... my problem is that i have a series like (10.15,10)(10.17,11)(10.19,12)(10.21,13)(10.23,14)(10.25,15) and another series like (10.15,10)(10.16,10.5)(10.17,11)(10.18,11.5)(10.19,12)(10.20,12.5)(10.21,13)(10.22,13.5)(10.23,14)(10.24,14.5)(10.25,15) now when i plot these i want tick marks only for first series that is 10.15,10.17.... what should i do regards himateja PS:Actually the problem is i have a ...

12. Problem witht the ticks    jfree.org

hi david... is it possible to use a date axis and put ticks at 10:15 ,10:17 ...ie ticks at odd values with a interval of 2.. my code looks like this DateAxis domainAxis=(DateAxis)plot.getDomainAxis(); domainAxis.setTickUnit(new DateTickUnit(DateTickUnit.MINUTE, 2)); domainAxis.setDateFormatOverride(new SimpleDateFormat("hh:mm")); but it shows ticks at 10:16,10:18 so on... Is it the same problem as with Number Axis.... regards Himateja

13. VERY URGENT:problem with ticks    jfree.org

hi david... is it possible to use a date axis and put ticks at 10:15 ,10:17 ...ie ticks at odd values with a interval of 2.. my code looks like this DateAxis domainAxis=(DateAxis)plot.getDomainAxis(); domainAxis.setTickUnit(new DateTickUnit(DateTickUnit.MINUTE, 2)); domainAxis.setDateFormatOverride(new SimpleDateFormat("hh:mm")); but it shows ticks at 10:16,10:18 so on... Is it the same problem as with Number Axis.... regards Himateja

14. Ticks corresponding to Missing values    jfree.org

hi all.. DateAxis domainAxis=(DateAxis)plot.getDomainAxis(); domainAxis.setTickUnit(new DateTickUnit(DateTickUnit.MINUTE,2); domainAxis.setDateFormatOverride(new SimpleDateFormat("hh:mm")); i tried the above code...the problem is that if i want to plot the points 10:20,10:22,10:24 and the data at 10:20 is missing the tick at that point is not shown...it shows ticks from the point where the corresponding y value is available....but this is not the problem with a point in the ...

15. set Minimum tick unit count    jfree.org

Hi, I would like to know if it is possible to set the minimum amount of TickUnits shown on a ValueAxis in a XYPlot. I am using my own StandardTickUnits, via the setStandardTickUnits method on the ValueAxis. I noticed that then calculateVisibleTickCount in NumberAxis always returns 1 for a certain set of data and image size, regardless of the number of ...

16. Missing first Tick    jfree.org





17. Tick Points    jfree.org

Hi... i have written a class that extends the AbstractXYDataset that will have three Y values for a single X value.And i have overridden the drawItem method so that it drwas the points and lines for it. Now I would like to put a tick point for a xvalue even if the corresponding y values are missing... For example my x ...

18. Selectively display tick points    jfree.org

Hi, I need to have control over the individual tick points displayed on the TimeSeries Domain Axis.I need to shut down some of the tick points and enable the others. For examle IF i have dataset like(10:15,10)(10:16,12)(10:18,13) right now there is a tick point displayed for 10:17 also...but i dont want it to be displayed...is there a way to do. so.. ...

20. small Ticks between bigger ticks    jfree.org

Hi everyone, first i've to apologize for my bad english, but i've got a (hopfully simple) question. I want to make my domainAxis looks like this: |''''|''''|''''|''''|''''| (bigger Ticks with labels and smaller Ticks for orientation) 0 5 10 15 20 Is that possible in the current version? With kind regards maniac

21. Ticks starting at lower bound of range - how to?    jfree.org

Hallo, I have tried a lot to get the ticks and labels starting at the lower bound of range. I want to get a simple line graph, with a simple axis stat starts with the first label at the crossing with the x-axis e.g. upper bound of range is 20.56; units is 10; This is the expected axis: 40.56 | | ...

22. Tick marks    jfree.org

23. tick units over the chart    jfree.org

24. Set interval for tick units    jfree.org

Hi everybody, I want to set up a maximum number of tick units on an axis range in a bar chart (category plot). I'm doing something like this: CategoryPlot plot = chart.getCategoryPlot(); ValueAxis range = plot.getRangeAxis(); CattBarRenderer renderer = new CattBarRenderer(); renderer.setInvalidColor(Color.GRAY); TickUnits ticks = new TickUnits(); ticks.add(new NumberTickUnit(1980)); ticks.add(new NumberTickUnit(2000)); range.setStandardTickUnits(ticks); /* Some issues on the renderer... */ plot.setRenderer(renderer); range.setRange(minYear,maxYear); ...

25. Count of Ticks    jfree.org

Hi, is it possible to retrieve the number of tick units of a NumberAxis? A short description of what I want to do: I want to use XYBoxAnnotations for hotspots. For each Box defined by an intersection of the gridlines of Domain and Rangeaxis. I can get the lowest and the highest point of a NumberAxis, but to calculate the next ...

26. Tick Question    jfree.org

27. Parameters of ticks    jfree.org

28. Help with Minute by Minute Tick Data    jfree.org

Hi, I just downloaded JFree yesterday and I'm trying to figure out how to come up with a JFree Chart containing 1 minute tick data for a stock (11MB csv file) from Jan 2006 - Nov 2006. I tried the following method, but it seems that a collection of timeseries minute objects isn't what I should be doing. Anyone can help ...

29. Limit number of Ticks    jfree.org

Hello, I have the problem, that my chart gets too big. I want to avoid this and tell the user to choose another interval. Example: The user chooses to display in interval MINUTES. The first value is 05.02.2007 10:12. The second value is 06.02.2007 12:12. The chart gets VERY big. How can I limit the number of ticks on the x-axis ...

30. once again tick units    jfree.org

hi guys and girls im currently working an a chart, which i didnt create myself, thats why im not so familiar with how the data looks like, so it might actually just be a data problem, but im sure some of you people will figure it out. so my problem: my x-axis of an xyPlot allways displays 0 as the tick ...

31. Last tick is clipped    jfree.org

32. Clickable Ticks    jfree.org

34. Do not show the tick mark when no data    jfree.org

Hi, I have used the XYPlot to plot a StackedXYBarRenderer and I observed that the tick marks were visible even when there is no data. I would like to have the tick marks visible on X-axis only when there is data. How to achieve this. I know this sounds simple but, I need to know to which flag of a method ...

35. MeterChart without tick marks    jfree.org

37. URGENT Tick marks angle    jfree.org

38. tick    jfree.org

Hello I have 2 questions following on NumberTickUnit 1. my tick on Axis X is number week (w) of year (01 -> 52 or 53) almost case, my data is on one year, so it's ok if I show on format 'ww' for ex: 09 10 11 12 but sometimes, my data is on 2 year, for ex 200751 200752 200801 ...

39. Show/Hide Tick Marks    jfree.org

Hello everybody, Trying to figure out this ....... Is it possible to hide all the tick marks in between BUT keep the ones on the ends - I just want to show the lower bound tick mark and tick label and similarly the upper bound tick mark and the tick label. I want to hide the in between tick marks and ...

40. setAutoRangeIncludesZero(false) but with minimum # of ticks    jfree.org

i am using setAutoRangeIncludesZero(false) because the range axis is displaying values around 4 - 15 but sometimes the range is within the decimal places of a certain value, for example, 4.05 to 4.87.... and since I am not displaying the decimal places, the range axis only contains one tick label: 4. This makes it difficult to visualize the scope of "4", ...

42. How to display minor ticks    jfree.org

Hi, maybe anyone can help me. I create a Chart with a DefaultCategoryDataset. On the RangeAxis/ValueAxis are integer values. Now I want not only the major ticks with a label but also 5 minor ticks without label between them. Like | | | | | | | 1......... ..2 Thanks for any help.....

43. Minor and major ticks with DateAxis/ValueAxis 2 create a ECG    jfree.org

Hi, what you want are "minor ticks". At present, DateAxis and NumberAxis only support major ticks for which you will get a tick mark, a grid line and a tick label (unless you hide them). You may find minor tick support for all ValueAxis subclasses in the next release. Then you will still get grid lines and tick marks for minor ...

44. Grid and ticks    jfree.org

45. Tick marks in 3D charts - JFreeChart 1.0.12    jfree.org

Observe the following images (in the follow up post) of the 2D and 3D version of the same simple bar chart. If you look closely at the tick marks of the range axis in the 3D versions (two possible axis locations), then you clearly see that there is some offset, compared to the major gridlines. I was wondering whether this works ...

46. Automatic ticks on dial charts?    jfree.org

Automatic ticks on dial charts? by DAppleman Mon May 11, 2009 8:46 pm I would like to use automatic tick marks and labels on a StandardDialScale, but it does not appear to be supported. Am I missing something? The non-default constructor and a number of getters/setters allow the user to set explicit tick settings, but I see no support for ...

47. How do I obtain values of my ticks?    jfree.org

I have a XYPlot with my rangeAxis being a NumberAxis. I would like to get values of my tick (major or minor). How do I get them? Is there a way to obtain a list? Basically I have a vertical slider that matches my Y axis, And I want ticks on my vertical slider to be same as on Y axis. ...

49. Add a single Tick to a MeterChart    jfree.org

50. Disable negative tick marks (updated)    jfree.org

Hi all, fairly new to jfreechart and new to the forum. I originally posted in haste, so I have edited the post with some more details. I am using version 1.0.13, the problem can be reproduced in the TimeSeriesDemo5. If you run the demo then zoom out (mouse scroll button backwards), eventually the tick marks become negative. In my case I ...

53. Tick Marks in Jfreechart    jfree.org

Hi, I have a scenario where in the data points in a line graph are over 1000 and I need to come up with Tick marks using jfreechart. There is this 10 minutes of data option chosen over days which leads to many data points and the label on x axis cannot be seen. So the option of tick marks was ...

54. Custom Tick Units    jfree.org

55. Customerized Minor Tick Count    jfree.org

Hey Group, I have been using Jfreechart 1.0.13 for last couple of days. I have checked out the new feature axis.setMinorTickMarksVisible(true) for showing the minor tick marks. Now the problem is. On the dateAxis, I have choosen to setAutoRange(true) to display dates in the Axis. My DateAxis start at 10/11(Minstart, not displayed), then 10/15 ( is displayed), 11/01 ( is displayed) ...

56. LogAxis minor tick marks not showing    jfree.org

In a TimeSeries plot, using LogAxis, I am unable to get the minor tick marks to display correctly (Like LogarithmicAxis does, and I want only the major tick labels). In vers 1.0.12 I could not get them to display at all, and now in vers 1.0.13 only a single minor tick mark between a decade (see http://sol.spacenvironment.net:/~spacewx/Jplot_Xrt_3sec.png ). I'm sure I'm ...

57. HELP needed with Tick Units Conversion    jfree.org

Hi there, I am trying to plot a chart, which has dual range axis(y-axis). The x-axis units are immaterial in this case. Suppose my left Y-Axis has ticks 1,2,3,4,5 then I want my right y-axis to have tick units 2,4,6,8,10; where the tick unit 1 on the left axis corresponds to the tick unit 2 on the right axis i.e., 1 ...

58. Maximum amount of ticks using auto range    jfree.org

I wonder if there is a possibility to use the auto range mode of an axis and specifying the maximum amount of ticks!? e.g. it is very ugly if you have auto range minimum size 1 and no values in the chart and the ticks are "0 - 0.05 - 0.1 ... 1" i would like to have something like setTickMaxAmount(6) ...

59. Automatic ticks for high/small numbers    jfree.org

hm, this doesn't really help. as soon as the y-value goes higher than about 8.6e15 the ticks won't show up anymore. versions: jcommon-1.0.16.jar, jfreechart-1.0.13.jar here some screenshots of the the problem: and the code: Code: Select all imports... public class ChartTests extends JFrame { private static final long serialVersionUID = 2102381690226125708L; public ChartTests() { ...

60. Drawing the ticks at an angle in a Box and Whisker chart?    jfree.org

I just downloaded and started using jFreeChart 1.0.13. I am drawing a Box and Whiskers chart. The text associated with each horizontal tick is pretty long and displays with ellipsis. Is there a way to write them at an angle? I saw a post "Tick label angle (extended code)" but there is no explanation at all. Thanks Fred

63. Showing Tick for CatagoryAxis    jfree.org

Hi, I have a requirement where i can set tick value with unit interval in CatagoryAxis. I have seen it is possibile to set a unit interval using setTickUnit() in DateAxis. My Problem is the following: I have some values on the x-axis, for example: 1,1.5,2,2.5,3,3.5,4,4.5,5,5.5 and I want to display on the x-axis only the units for: 1,2,3,4,5 Any suggestion? ...

64. need to configure tick values    jfree.org

i have a range of 222 to 486 on domain-axis and I want that tick units should differ by 57.2 and should appear as 222 ,274.8 ,327.6 ,380.4 ,433.2 ,486 but they automatically shown as 264 , 316.8, 369.6, 422.4, 475.2. How to tackle this so that ticks are show correctly ? however graph plotted is correct because axis still beginning ...

65. Logarithmic ticks problem    jfree.org

NumberAxis domainAxis = new LogarithmicAxis(dictionary.__(27) + " [cm-3]"); final DecimalFormatSymbols newSymbols = new DecimalFormatSymbols(Locale.ENGLISH); newSymbols.setExponentSeparator("E"); newSymbols.setDecimalSeparator('.'); ...

66. number of tick marks and alternate grid bands    jfree.org

I would like to set the number of tick marks on my range axis, and let jfreechart determine the labels. Basically, I do not want minor tick marks (which have no label). I tried setting xyPlot.getRangeAxis().setMinorTickCount(0); but this does not do anything because by default minor tick labels are not displayed. The problem I have is that I have alternate grid ...

67. Setting Tick units in JFreeChart 1.0.13    jfree.org

HI all, I have been trying to set the spacing between the Y-Axis ticks in an XYLineChart. My Y-Axis values range from 0 to 1 and I want the ticks to be displayed every 0.1, with a bit of searching I was able to identify that I needed to the get the rangeAxis from the plot and then use the setTickUnit(0.1) ...

68. jfreechart tick start    jfree.org

69. specialized question: how to override tick unit selection?!    jfree.org

hello, i am implementing a new Axis type which displays values that are not the data range - they are the data range, converted to a different (physics) unit. so i have, say, an x axis which displays kilometers. i will now allow the user to change the display to millimeters. this does not change the data at all (the data ...