Scale « Axis « JFreeChart Q&A





1. JFreeChart - X-Axis Scale Incorrect    stackoverflow.com

Currently, I have a JFreeChart which looks as follow : enter image description here


Its x-axis is out of scale. When I manually single click on the chart, it will look ...

2. Auto-Scale Y-Axis in JfreeChart    stackoverflow.com

I am using JFreeChart to create candlestick charts in my Java app. However, my charts end up looking like this: capturebhx http://imageshack.us/photo/my-images/69/capturebhx.png/ I would like to have the Y-axis automatically ...

3. Y axis scale issue in jfreechart.    jfree.org

Hi, I am using jfreechart 1.0.13. I want to hide the scale of y axis and to show only minimum and maximum value in y axis. I have used axis.setRange(0, max) function. It is working fine. But i want to set some minimum value other than 0. Example : I am using category data set. The dataset contains the values like ...

4. X axis scaling    jfree.org

Hi, I need to plot a XY line graph that in the X axis the tick unit is not fixed size. For example, I have to show tick like 0.1, 1, 10, 100, 1000, 10000 and plot the graph according to that. It's increase by 10 times from the former tick. Does anyone know how to do that in JFreeChart? Any ...

5. width and x axis scale of XYBarChart    jfree.org

Hi, I am trying to plot monthly sales volume chart using TimeSeriesCollection (Month.Class) The width of each bar looks really big and some bars are missing (i.e bars for whole data set are not being drawn because the x axis is showing the scale in weeks. so its not able to accomodate looks like) Is there a way to change the ...

7. How to scale the Y-axis when the range of the X-axis changes    jfree.org

Hi, I'm creating multiple time series charts from a single, large dataset (TimeSeriesCollection). For each of those chart, I set the range of the x-axis. For example, the first chart will be for 7 days, the next chart will be for 30 days and so on... The problem I have is that the y-axis scale is not properly re-adjusted for each ...

8. overlaid chart in cewolf and auto scaling of Y axis    jfree.org

Hi, I am using cewolf and I am trying to get to plot a HighLow chart along with the moving average line on it. But, when I used the overlaid chart tag option in jsp and set the "yaxistype" option as "number", the range on Y axis starts from 0, instead of automatically adjusting the starting value. If I use the ...





12. Scaling TickUnit in x and y axis.    jfree.org

Hi, I have a chart that shows X-und Y-Axis . But I would like to set the TickUnit dynamically. Wenn I have much data the TickUnit must be like( setTickUnit(new NumberTickUnit( 50 , new DecimalFormat("0"))); with not much data instead of 50 , I would like somethings like 5 or 10 . (setTickUnit(new NumberTickUnit(10, new DecimalFormat("0"))); Best Regards Christelle

14. Problem with Y Axis Scale    jfree.org

Hi all, I have a problem with one of my Bar Chart. I have some differents long value...Exemple : Group/Transaction Gr1/5 199 Gr2/3 Gr3/28 Gr4/21 My problem is caused by the value of Gr1(5199)....My chart show a big bar with Gr1...But the small value of the other group are not really visible caused by the Y Axis scale... Is it possbile ...

15. Range Axis scale    jfree.org

16. Scaling Y axis.    jfree.org

Hi, I have the following problem. My charts display onfo with very high Y coordinates. Let's say the Y range falls between $100,000,000 and $600,000,000. As a result there is a lot of space wasted on the tick labels since JFreeChart generates $100,000,000.00. Is it possible to configure the chart to generate numbers in millions of dollars, which would get translated ...





17. Y Axis scale is missing    jfree.org

hi I have a problem, where the Range Axis does not display the tick labels. There is nothing along y axis to display the value of the graphs. This is my Dataset. I am trying to draw a simple line chart. Can someone tell me what to do to see the Y axis scale back? 4.66,4.68,4.7,4.7,4.71,4.71,4.71,4. 72,4.72,4.72,4.69,4.72,4.72,4.72,4.72,4.72,4.66,4.59,4.400, 6,4.6,4.21,4.21,4.21,4.21,4.22,4.22,4.22,4.23,4.23,4.24,4.24,4.25,4.25,4.26,4.27 ,4.27,4.28,4.28,4.29,4.29,4.3,4.31,4.31,4.32,4.32,4.33,4.33,4.5,4.67,4.67,4.72,4 .78,4.78,4.78,4.78,4.74,4.78,4.78,4.78,4.78,4.78,4.78,4.78,4.78,4.78,4.78,4.78,4 .78,4.79,4.78,4.79,4.79,4.79,4.79,4.79,4.79,4.78,4.74,4.68,4.69,4.54,4.39,4.39,4 ...

18. multi scaling on one axis    jfree.org

Hi All, can we have multiple kinds of scaling on the same axis. something like, I want to divide my Y-axis into 2 parts. one part i want to have fixed range of values and for the second part, I want to apply auto scaling by JFreeCharts starting at the boundary value of the first part. Thanks in advance.

19. LogarithmicAxis scale problem    jfree.org

Hi, i'm working with JFreeChart and i need to show y-axis value < 1 but the class only shows values 0, 1, 10, 100... I've extended LogarithmicAxis and the tick value i need are now visible but are so close to zero... Is there a way to expand the log scale according to the range values??? Thanks

21. How to partially disable automatic axis scaling?    jfree.org

How to partially disable automatic axis scaling? by opeongo Wed Nov 28, 2007 5:56 pm Is there a way to selectively disable autoscaling of data for layers within a plot? More precisely, how do I control how a NumberAxis gets its scaling values set? I would like to set up a chart that has lower and upper thresholds that are ...

22. range axis at CombinedDomainXYPlot doesn't scale for applet    jfree.org

Hi, I'm using CombinedDomainXYPlot. And I found that the rangeAxis doesn't scale if the range value grow. Hence if the range value is 1.98321232. I lost first a couple of bits, and I only able to see the last bits ( eg. 1232) on the y axis. Does anyone know how to solve this problem? And also the range values is ...

23. How do you set the y axis so that the scale is whole numbers    jfree.org

I'm drawing histograms to show about information I have for some nodes in a graph. The y-axis shows the number of nodes that has the value of x, so it would make sense only if y is whole number. How do I change the axis settings so that it only displays whole numbers instead of decimal numbers as well?

24. Hiding A Series and Auto Scaling the Axis    jfree.org

Unfortunately, this is currently a limitation in JFreeChart (the auto-range calculation always uses the entire dataset, ignoring the fact that (a) some series may not be visible and (b) that a subset of x-values may be showing on the x-axis). I hope that those limitations will be removed eventually, but I can't promise any timeline for that right now...

25. Exponential scale on Y-axis (ExponentialAxis ?)    jfree.org

Hi, I want to display XY charts but using an exponential scale for Y-axis. JFreeChart allows to use logarithmic scale(classe org.jfree.chart.axis.LogarithmicAxis), which is exactly what I want to do but with an exponential function. I tried to make a class which extends org.jfree.chart.axis.NumberAxis taking as model LogarithmicAxis class, but I don't think i got enough Mathematical knowledge for that. I think ...

26. Axis / Scaling problem?    jfree.org

I have problem with getting the correct Y values when having mouseover a point on my chart.. This is what i have in my listener: public void chartMouseMoved(ChartMouseEvent move) { MouseEvent e = move.getTrigger(); int x = e.getX(); int y = e.getY(); Point2D p =frame.getChartPanel().translateScreenToJava2D(e.getPoint()); XYPlot xyplot = frame.getChartPanel().getChart().getXYPlot(); Rectangle2D dataArea = frame.getChartPanel().getChartRenderingInfo().getPlotInfo().getDataArea(); double xValue = xyplot.getDomainAxis().java2DToValue(p.getX(), dataArea, xyplot.getDomainAxisEdge()); double yValue ...

27. Q: log y-axis scale tick marks    jfree.org

I have created an XYPlot using a LogAxis as the range. When the data include only one small-valued point (<1), no tick mark labels appear. I cannot figure out how to force them. The chart is a time-series. I used a test case with a single data point of (1/1/08, 0.9). I get a nice graph with a single value in ...

28. how to scale axis independently from each other    jfree.org

All, I've trying to find a way to define the max value to assign for each axis on a spiderwebplot. The issue I face is that for some datasets, the scale between two axis could be very large, e.g. C1~100 and C2~10 thus resulting in a very shallow chart. Is there a way to assign the max axis value for a ...

29. fixed scale for Y-Axis    jfree.org

30. Dynamicly changing y-axis scale    jfree.org

I have created for example 5 series of data (value 0..4000). All series are in different units. After loading all series into timeseries charts I would like to convert measure (0..4000) scale to 0..100%. I can do this - simply measure/4000=0..100% After clicking at charts or at button I don't want to redrawn charts(5 series) but I only want to change ...

32. Change the scale axis    jfree.org

Change the scale axis by arkhan1 Thu Oct 16, 2008 5:55 pm Hello everybody, I need your help. This is the code of my chart: Code: Select all private void Grafico( String TXT ){ String nomefile=TXT; try { ...

33. problem with axis scaling    jfree.org

___ ___ ___ ___ 5 | _|_ _|_ _|_ _|_ 4 | | | | | | | | | 3 | |___| |___| |___| |___| 2 | _|_ ...

34. how to customize value axis scaling?    jfree.org

Hello to everyone, i want to plot a bar 3d graph, with values 10. 20. 30 the value axis shows the scaling from 0 to 30 with difference of 1. i used TickUnit tor this now i got scaling of 10, i want to have ticks for my values also. eg: if i have a data of value 12 then the ...

36. XY Data set that contains log scale values and log axis    jfree.org

Greetings and a happy Easter to all. I essentially need a square grid (cartesian plane) that I render XY data items in the extents of the boxes. For a grid containing arithmetic scaled XY data items I use a number axis for domain and range and make sure the number of intervals for both is the same for both axis with: ...

38. fix the scale of the range axis    jfree.org

Hello, I wounder if there is the possibility to fix the scale of the range axis. I want to show a chart depending on a chosen percent value. To improve the comparability of the charts i want to use the range axis scale of the highest percent value for all charts so that heights of the bars in my chart depend ...

39. Gaussian scale axis    jfree.org

40. Scaling for Y-Axis    jfree.org

How to scale the values for y-axis? For eaxample, - if the values for y-axis ranges betwee (0,....12,000000) the y-axis range should be (0, 4000000, 8000000, 12000000) and the scale value should be 4000000. ie., the maximum value "12,000000: is divided by three and result "4000000" should be set as the scale range. Another example - if the values for y-axis ...

41. Is possible make an axis scale break? I want Break Y Axis.    jfree.org

The DateAxis supports something called a TimeLine which should provide the functionality that you need. But you need a NumberAxis which does not support that. I wonder whether it would be possible to steal the TimeLIne could from the DateAxis, rewrite it to be useable for the NumberAxis, and then provide a suitable implementation. For now, as a workaround, you could ...

43. log axis auto scaling problem    jfree.org

log axis auto scaling problem by arwelbath Fri Jun 04, 2010 3:13 pm Hi, I am plotting a number of series on a log-log XY plot, and I have a problem with autoscaling. If I zoom in, the data looks fine. However, if I zoom out, the y-axis automatically scales so that its lowest value is 10e-101. This problem is ...

44. Setting the same scale on X and Y axis    jfree.org

Hello, I am using JFreeChart 1.0.13. I am trying to create a chart on the basis of an XYPlot, with NumberAxis. I would like to have the same scale on the Domain and Range axis (i.e X and Y), that is to say having the same distance to represent a given interval on both axis (orthonormality). I have already looked into ...

45. different axis scaling partitions    jfree.org

47. How can I use microsecond scale on the x axis?    jfree.org

I'm tring to develop the applet that the corrected data of the XML file will be displayed. Currently, I'm modifying "CrossHairDemo2". I haven't found how I can edit a milosecond scale to a microsecond one. Is it right that I should costomise coding new the microsecond class because of no exsistance? If some othe nice ideas will be resolved, could you ...

48. Axis out of scale problem    jfree.org

Re: Axis out of scale problem by yccheok Fri Mar 25, 2011 2:48 pm Here is the demo code which demonstrate this problem. Code: Select all package problem; import java.awt.Color; import java.awt.Dimension; import java.text.DecimalFormat; import java.text.NumberFormat; import java.util.Date; import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartPanel; import org.jfree.chart.JFreeChart; import org.jfree.chart.StandardChartTheme; import org.jfree.chart.axis.NumberAxis; import org.jfree.chart.plot.XYPlot; import org.jfree.chart.renderer.xy.StandardXYItemRenderer; import org.jfree.data.time.Day; import org.jfree.data.time.TimeSeries; import org.jfree.data.time.TimeSeriesCollection; import org.jfree.data.xy.XYDataset; ...