axes « Component « JFreeChart Q&A





1. jfreechart - domain axes synchronization problem    stackoverflow.com

I have a task to do. I have to compare two time series charts which don’t share either domain nor range axis. With range axis there is no problem. I ...

2. Removing Value Axes.    jfree.org

Dear all. I have question how to add and remove value axes to chart in any order. I am trying to use following code: if I am adding dataset number N setDataset(N,dataset); setRangeAxis(N,new NumberAxis()); mapDatasetToRangeAxes(N,N); if I am removing dataset : setRangeAxis(N,null); setDataset(N,null); It works fine until I am deleting dataset with index 0. It throws NullPointerException in drawCrosshair methods. How ...

3. Multiple range axes alignment    jfree.org

4. Logarithm axes problems    jfree.org

Logarithm axes problems by nclemeur Mon Feb 14, 2005 12:51 pm Hello, First of all I would like to congratulate the JFree team for producing such an amazing toolkit. I was desesparetely looking for something similar in C++ (free and cross-platform), and never found! So now I am a Java addicted (and newbie). I am still discovering the tools but ...

5. Adding Additional Domain Axes    jfree.org

Adding Additional Domain Axes by mcpres Tue Feb 15, 2005 11:13 pm I've just begun to work with jFreeChart and am trying to get the code to work from the developer's guide for creating multiple axes and cannot get more then the primary one to display. I only have 1 data set, but the affect I'm trying to get, is ...

6. multiple axes and visual cues    jfree.org

multiple axes and visual cues by Todd Tue Jun 28, 2005 2:54 am Is there any way to draw small square shapes under a range axis with colors of series that use that axis? I am migrating to jFreeChart's XYPlot to chart multiple series, which have the same unit of measure and therefore need to share the same axis. On ...

7. Changing axes after chart creation    jfree.org

Hello! I have a XYPlot with 4 different axis on it (Temperature, percentages, heights, and rainfall quantity.) I also have a series of checkboxes that will turn series on or off. Via: dataRain.removeSeries(rain); or dataRain.addSeries(rain); This works great, but I am unable to get rid of the rain axes... If I draw the chart having done: Code: Select all ...

8. Fixed axes    jfree.org

9. Multiple range axes?    jfree.org

I have an overlaid chart with data coming from two datasets. The domain axis is the same for both, the range is different. What I want is to have the range axis for the 1st chart display on the left and the range axis for the 2nd chart on the right. However, it seems that the axes are linked to the ...





10. Marker and Dual Y Axes    jfree.org

// add a labelled marker for the target price... Marker target = new ValueMarker(175.0); target.setLabelOffsetTypeForDomain(LengthAdjustmentType.CONTRACT); target.setLabelOffsetTypeForRange(LengthAdjustmentType.EXPAND); target.setPaint(Color.red); ...

12. Multiple axes support buggy & Development of JFreeChart    jfree.org

Hello all, multiple axes support is a feature which i need for a project. Unfortunately there are many problems with this feature. For example wrong crosshair positions, wrong axis used for a curve when zooming in and out again and so on. I wonder if noone else uses this feature as I did not get any answer to my last post. ...

13. as I can position the axes in chart?    jfree.org

at the time of transposing chart of the type lineChart, it appears to me the axis and in the superior part, but I wish to put it in the inferior part. setPosition() does not have the method; since I can cause that the axis appears in the inferior part? greetings to all thanks to read the message Joshua

14. Need help: Axes in StepChart    jfree.org

Hi! Hope to find anybody explaining me how to let domain axis become a kind of time axis. I have a DefaultCategoryDataset: DefaultCategoryDataset defDataSet = new DefaultCategoryDataset(); defDataSet.addValue(0,"Person1","Unknown"); defDataSet.addValue(10,"Person1","Sleeping"); defDataSet.addValue(15,"Person1","Dancing"); defDataSet.addValue(20,"Person1","Happy"); At moment, the double values appear to be shown on my number axis ("y-axis") while the last arguments given to "addValue" method set a category on domain axis ("x-axis"). My ...

15. Shared intercept on CategoryChart with multiple axes?    jfree.org

I have a category bar chart with 2 series, both mapping to their own axis (first on the left, second on the right). The chart looks great when all values are positive, but if one of the series happens to contain a negative value, the chart starts to look goofy (the series with the negative value looks like it's hovering, as ...

16. aligning domain axes on multiple charts    jfree.org

Hi All, I have two time series chart panels arranged vertically (i.e. one is positioned south of the other) and would like to: a) horizontally align the range axes. The range is different for each. The time period is the same for each. b) horizontally align the end of the domain axes, i.e. ensure that the width of the domain axis ...





17. Logarithmic Axes    jfree.org

Logarithmic Axes by Carl Manaster Tue Mar 28, 2006 1:32 am Hi, I'm new to jfreechart. The first thing I want to do with it involves logarithmic axes, so I figured out how to make my axes logarithmic. Then I wanted to set the number format; I found SetNumberFormatOverride() and tried it, and nothing happened. Switched back to linear axes ...

18. Mathematically related range axes    jfree.org

20. draw x and y axes    jfree.org

21. Aligning multiple axes on zero value    jfree.org

Has anything been done to enable the aligning of multiple range axes on y=0? I have seen a number of posts related to this topic dating as far back as 2003 and as recent as 2005 but I have not found a solution in any of them. I also noticed that at least one tracker item has been created for a ...

22. Multiple range axes and range markers    jfree.org

Hi All. I have a problem: I have a multiple axis chart (4 range axes and 1 common domain axis). I would like to have range markers that "maps" to the different range axis, but I can only get the range markers to map to the primary range axis since addRangeMarker only applies to a (sub)plot and not a renderer. Please ...

24. Sharing range and domain axes    jfree.org

25. 3D chart with three axes?    jfree.org

27. unit in axes    jfree.org

Hello to everyone!! I have a problem with my axes units. My graphic should show very different ranges, but never less than 2 decimals (ej:0.01). If I zoom I dont want the graphic shows very little numbers. I have try: final DecimalFormat format = new DecimalFormat("######.##"); ((NumberAxis) ejey).setNumberFormatOverride(format); but my problem now is that the number has only 2 decimals but ...

28. Lock scales on both axes    jfree.org

I have a scatter plot with both axes having the same units. Right now the auto-scale functionality changes the scale as to fit the data. What I need is also to lock the scales on both axes, so a 45 degrees trendline would stay 45 degrees regardless of the data distribution. Also, when zooming, I need to zoom uniformly on both ...

29. Axes range for multiple axes is wrong    jfree.org

So my last question was resolved, and my graph is displaying both axes nicely-but with on hitch: My second axes goes from 0 to 1 when the variables are extending from 0 to 25. Basically, in trying to get the basics of JFreeChart, I have input values and outputs defined as (input +1). So, in graphing them on the same graph, ...

30. Unwanted Convergence when using multiple Axes    jfree.org

To follow up with the issue I was having yesterday, I'd like to thank Skunk for helping me get datasets and axes to come together using the mapDatasetToRangeAxis method. For some reason the graph is now distorted at the last value. For test values, I have made a simple output = input+1 dataset, but on the graph, it has the input=output ...

31. Axes Spacing    jfree.org

32. Q: Positioning an XYLineAnnotation with two Y axes    jfree.org

Annotations added directly to the plot will use the primary axes. Annotations added to a renderer will use the same axes that the renderer is mapped to. So you need to do the latter - get a reference to the renderer that is mapped to the correct y-axis, and add your annotation to it.

33. How to make set proportions between domain and range axes?    jfree.org

You can control your axes (?) pretty fluently in jfc. You have two numberaxis's, and what you want to do is turn off margins and autoadjustment. From then on, you control the actual visible area by setting lower and upper bounds. To get the circular shape stay as a circle you need to take two options into consideration. 1) If actual ...

35. [patch] special chart entities for axes and text titles    jfree.org

I have uploaded a patch that allows the creation of chart entities for axes and titles. While a chart entity is already generated for text titles, it is a simple ChartEntity, and it is not possible to get a reference to the TextTitle for e. g. editing purposes. No entity is generated for an axis. The patch includes two new classes ...

36. Aligning max values of two separate axes    jfree.org

Hello, I have got a plot containing two overlaid charts - a bar chart and a line chart. The bar chart uses a category data set with two series per category. The line chart displays percent ratios of the two series values per category. The line chart uses a fixed range Y axis (0-100%). I would like to align the 100% ...

37. Two connected domain axes    jfree.org

I would like to create two domain axes so that one of them displays the free space wavelenght of light and the other one the photon energy. In principle these are connected by E = hc/l. In other words the two values are inversely proportional. I almost managed to do this so that I created two different datasets and matched them ...

38. Two domain axes with a converter    jfree.org

public class DaysFromBocToDateConvertingXYDataset extends DefaultXYDataset { Date dateOffset; public DaysFromBocToDateConvertingXYDataset() { this(new Date(0)); } public DaysFromBocToDateConvertingXYDataset(Date dateOffset) { this.dateOffset = dateOffset; } @Override public double getXValue(int series, int item) { ...

40. Shifting axes    jfree.org

41. Problem in Dual Axes Chart    jfree.org

Problem in Dual Axes Chart by jugnu Fri Feb 26, 2010 12:13 pm Hi folks, I am new to JFreechart and I want to develop a dual axes chart similar to the one below I am able to produce the below out put with some dummy data When I zoom it out, I can see the following output. Definitely, I ...

43. Axes customization problem    jfree.org

Hello! Firs of all, I would like to thank you so much for developing this library. It helps me a lot in my work. I've already searched in the forum and in the docs for similar cases but i didn't find any similar thread. My apologise If i have skimmed over this. I am experimenting with a TimeSeries chart. Now, the ...

44. shared x and y axes    jfree.org

I currently use the CombinedDomainXYPlot and it works very well. Now I have plots for which it would be nice if it was possible to add additional plots not only to the shared domain axis but also add additional plots which share the range axis. Imagine for example a scatter plot with two additional plots: an estimated density for the x-axis ...