Multiple axis « Axis « JFreeChart Q&A





1. JFreeChart domain axis with multiple (but sequential) data series    stackoverflow.com

I am trying to display a plot that will have different colors at specific time-periods. The only way I managed to do that was by chopping the initial data series into parts ...

2. Multiple y axis problem    jfree.org

Multiple y axis problem by swap Thu Jul 14, 2005 7:37 am Hi all, i have two y axis, one for bar chart and one for line chart, both of them are working properly if data for both is positive. But as the data for line chart goes negative, the starting zero(0), shifts upwards and staring zero for bar chart ...

4. Multiple Axis (setNoDataFound/Annotation)    jfree.org

Hi, I created Multiple Axis chart. There are 4 parameter for which i want to display the 4 Y-axes. No doubt i able to display those. Now I want to show some message (like "Data Not Found for 'abc' parameter") if data for any particular parameter ('abc') is not available. I tried using two options: 1) setNoDataMessage(String str), 2) adding annotation, ...

5. Scatterplot with multiple values on a time-based X axis    jfree.org

Hi all, I have a question, I used the search tool, though with no final response on a similar question. I need to do a scatterplot that has hour:mi on the X axis... although the TimeSeries only allows me to addOrUpdate on one value of time... whereas the real scatterplot allows me to do multiple on the same X axis. (I ...

6. CEWOLF- Multiple Axis    jfree.org

8. Urgent Multiple Range Axis    jfree.org

9. Multiple lines in the x axis label    jfree.org

I need to display more than one value in the x-axis label. Is there a way for me to force it to show up in the next line. If I set the setMaximumCategoryLabelLines, it wraps the information (which is good). But, want to force it to go to the next line in some cases. Thanks in advance. smovva





10. Bart Chart with Multiple Axis issues    jfree.org

I have created a bar chart with dual Y axis. I also use a different renderer for the second axes. However, I notice that the second bar chart does not render correctly as far as the size and position goes. It looks like it renders the two charts independently of each other. So, instead of printing the series next to each ...

11. Multiple axis running headless!    jfree.org

Hi, I am running JFreeChart 1.0.0 headless and it has worked just fine until I added a second Axis to my chart. When I set the new axis on my plot I get the display error. java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. Here is my code: NumberAxis axis2 = new NumberAxis(data.getRangeAxisLabel2()); ...

12. Multiple TimeSeries scaling axis question    jfree.org

I have a single graph that contains several timeseries, and uses multiple axes. However, whilst the time line for each series has the same date range, the values are on completely different scales. I'd like to force the graph to scale each axis so that they all use the range [minValue - maxValue], where maxValue is the lartgest value used by ...

14. CombinedXYPlot and creating Multiple Axis at Runtime    jfree.org

Hello, I want to create a CombinedXYPlot-Chart with has 3 subplots(exactly like CombinedXYPlotDemo4.java only one chart more) The first one should show multiple curves and every curve should have a seperated range axis. If i do the initalization before I display the ChartPanel it works fine(like in CombindedXYPlotDemo4.java). The problems occurs when i try to add a axis to the first ...

15. CombinedDomainXYPlot multiple domain axis    jfree.org

Hi, I have a combinedDomainXYPlot which has 4 plots. Is it possible for each subplot (or the subplots that we choose programatically - say 2 and 4th from top to bottom) to have their own Domain axis ? The reason I want this is as follows - I am using CombinedDomainXYPlot to align the domain axis of all the plots, but ...

16. Scatter plot with multiple axis    jfree.org

I want to draw a scatter plot with multiple axis. The following codes showed one scatter plot with lined plot. How can I get two scatter plot with two Y axis? XYDataset xyDataset1 = new XYSeriesCollection(series1); XYDataset xyDataset2 = new XYSeriesCollection(series2); JFreeChart chart = ChartFactory.createScatterPlot( "Microarray Sample Selection 5Oct06 "+ userInput, // chart title "Age [weeks]", // x axis label "Bloodsmear ...





17. combined chart with multiple axis    jfree.org

I want to have a combined chart. Is there 'combined scatter plot? One chart the top (subplot1 scatter plot) and the other chart at the bottom (subplot2 scatterplot). Top chart (subplot1) should have multiple Y axis. Top and bottom chart have separate domain x axis. Is it possible? Or can I place two unrelated chart into one frame?

18. Multiple ticks on axis?    jfree.org

Hi, I need to have multiple ticks on single axis - e.g. bigger marking every 10th tick, middle size for every 5th and even smaller for unit tick. I think JFreeChart currently does not support it. The ideal design should be ValueAxis holding list of AxisTick classes, which can be added, make to create label etc. Then draw method will draw ...

19. Time Series with Multiple Y Axis    jfree.org

Hi I'm trying to create a chart with multiple Y axis and each Y axis may have serval lines mapped to it. The X axis timeframe is the same for both. As an example, imagine having the CPU Os stats from a server (User, System, Idle etc) as one set of Y Axis values, and Free memory has another. The Y ...

20. Multiple axis locations    jfree.org

For a chart with two axes sharing a single edge, how does one specify the relative position of these two axes? For example, if I have two range axes labeled "one" and "two", and both occupy the left side of a chart, how can I specify that axis "one" appear on the inside, i.e., to the right of axis "two"? And ...

22. Multiple Y axis    jfree.org

23. multiple y axis using only one Dataset    jfree.org

Thank you very much for your fast answer. If you have a little time more you could suggest me a way to solve my problem. I explain you the situation: my company needs to access data distributed in several DBMS(in different machines) and merge them in only one table to display a common result. In order to solve this problem I ...

24. Multiple Range Axis Question    jfree.org

I have a report with multiple range axis, both using a ValueAxis of integer ticks. I would like both these ranges to auto-range themselves (as it does by default), but I want both to line up at 0. The only way I have found to do this is the setRangeAboutValue method, using 0 as the centering value. However, this just makes ...

25. Multiple Axis & BarRenderers    jfree.org

The renderers don't check the context to see what else they're being overlaid with, so the position of the bars is not adjusted automatically. The workaround used in DualAxisDemo5,java is to add null series to each dataset, which causes the renderer to leave space for the "missing" data. You should be able to do the same thing, except that you'll need ...

26. Setting labels in multiple range axis graph.    jfree.org

Hi, I have a categoryplot with multiple range aixs. Now when I am plotting datasets with these corresponding axes, I am not able to set the labels for these datasets of different axes respectively. The category text annotation that I am using is always being set in the position specified by the category axis. Now if a label is to be ...

27. Tick alignment of multiple axis charts    jfree.org

Hello, I have a category chart with 2 Range axis. The grid lines are drawn according to the first range axis, but I would like to modify the ticks of the second range axis so they are aligned with the grid lines. Is it possible to do that with JFreeUnit ? Thanks in advance for any help. guilhem

28. Multiple Axis    jfree.org

Hi, Im trying to use one dataset with multiple series and map each of these series to a different y-axis on a XYLineChart. I am having trouble with setting the 2nd and 3rd series to a different axis. I see the different axis on the graph, but I am unable to have the 2nd and 3rd series map to this new ...

29. Removing multiple axis from combineDomainXYPlot    jfree.org

We are using JFreeChart API for generating the graphs in our application there are some areas where we need your support for meeting our requirements. The list is as follows. 1) In CombineDomainXYPlot we are adding the 3 subplots due to which domain axis for subplot1, subplot2 and subplots3 is visible. For our requirement we want this axes should be invisible. ...

31. Multiple Y axis and Single X Axis and Multiple graph lines    jfree.org

Hi, I am very new to jfreechart. I am developing a swing based project in which i require time interval plotted in X-Axis and 5 set of values related to X-Axis in Y axis like number of users at that time, memory load at that time like that. Can anyone provide sample to plot multiple values for same X-axis and each ...

32. Multiple XYLineChart range axis problems    jfree.org

One solution would be to increase the margins on one or both of the axes. For example, calling yAxis.setUpperMargin(0.30) will put a margin of 30% of the axis length at the top end of an axis. The effect of this is to make the data items display further down on the plot, with more whitespace in the plot at the top. ...

33. TimeSeries Multiple Axis Annotation    jfree.org

Annotations can be added to the entire plot, but can also be added to a specific renderer which will then be responsible for drawing (see XYItemRenderer.addAnotation(XYAnnotation annotation,Layer layer); During drawing, the plot goes through all its renderers, gets for every rendererIndex a dataset with the same index, gets the axes by calling get[Domain/Range]AxisForDataset(i), and finally calls renderer.drawAnnotations(...). Annotations assigned to the ...

34. Multiple Axis Chart - Only first Axis gets right Range    jfree.org

Hi everyone! I built an Multiple Axis Chart with JFreeChart. But when I put Data in the second Dataset, which is higher than the highest value on second Axis not the second axis do autoRange, only the first. Here my Code for the Chart: Code: Select all final JFreeChart result = ChartFactory.createTimeSeriesChart( ...

35. How to add few vertical lines to my graph(multiple axis)?    jfree.org

How to add few vertical lines to my graph(multiple axis)? by emaillenin Sat Jan 31, 2009 6:06 am The following is my source code(coded in JavaFX) Code: Select all var s1:XYSeries = new XYSeries("Distance"); for(i in [1..sizeof distList.items]) { ...

36. How to plot multiple y axis values for only one x axis value    jfree.org

How to plot multiple y axis values for only one x axis value in Line Chart of Category Plot. I have dataset like following dataset.addValue(15.2, series1, "27"); dataset.addValue(20.5, series1, "27"); dataset.addValue(30.2, series1, "27"); dataset.addValue(35.1, series1, "27"); dataset.addValue(40.5, series1, "28"); dataset.addValue(30.2, series1, "29"); dataset.addValue(35.1, series1, "30"); dataset.addValue(40.5, series1, "31"); dataset.addValue(30.2, series1, "31"); dataset.addValue(35.1, series1, "32"); dataset.addValue(40.5, series1, "33"); How is it possible ...

37. Grid and Minor Grid on the chart Dual Axis, Multiple Axis    jfree.org

At the moment, the gridlines are only drawn for the primary axes. I'd like to change that. But for now, you can workaround the first problem by changing the position of the primary axis from the left side to the right side, and the secondary axis you can shift from the right side to the left side. Then change the dataset ...

38. Multiple axis barchart3D overlapping display    jfree.org

Hi all, I am tying to use JfreeChart to display some statistics. I am trying to display the distribution of revenues on different categories of products (sounds familiar). So what I want to display is the different categories on the horizontal axis and to have 2 vertical axes : one for the ammount of revenue for each category and the other ...

39. Trouble with Gridlines in Multiple Axis Chart    jfree.org

The color was a modification by myself to make a change to the gridlines. I thought this could propabely make the gridlines repaint but in fact it didn't. So there is no change in the color or something else - the only (let's call it) bug is the missing grids in the lower part of the chart. It appears in the ...

40. Multiple label bands required for a number axis    jfree.org

Hi I have to implement amultiple label bands on the X axis . But my domain axis contains number values which is based on a range . and it is subdivided based on unequal ranges . I successfully implemented the unequal interval and tickmarks .But got stuck with the multiple bands . Looking something similar to periodaxis . But becs of ...

42. Multiple lines of labels (table?) under the X axis    jfree.org

Can we have multiple lines of labels under the X axis? The idea is that I would like to display, below of the X axis of a bar chart, numerical information about each bar. It is sort of a table attached to the chart in such a way that the columns of the table are aligned with the bars in the ...

43. TimeSeries chart axis items are displayed multiple times    jfree.org

Hello, I am creating a TimeSeries chart, based on a collection of dates and values. Then I print this chart to a PDF file. For this, I am using JFreeChart version 1.0.13. The axis labels, on the date axis, are configured with the following pattern: "dd MMM", which prints dates like "14 Apr". When I output the chart to the PDF, ...

44. Tooltip for multiple axis chart.    jfree.org

JFreeChart jfreechart = ChartFactory.createXYBarChart("", "", true, "Volume (m^2)", intervalxydataset[0], PlotOrientation.VERTICAL, false, false, false); XYPlot xyplot = (XYPlot)jfreechart.getPlot(); XYBarRenderer xybarrenderer = (XYBarRenderer)xyplot.getRenderer(); DateAxis dateaxis = (DateAxis)xyplot.getDomainAxis(); dateaxis.setDateFormatOverride(new SimpleDateFormat("dd-MMM \t EEE")); ...

45. Multiple axis issue    jfree.org

Hi everyone! Once again, I need your help... I'm trying to create a jfreechart with one axis for abscissa and two for ordinates. I've managed to create that but the fact is that my two graphs refering to the two axis of ordinates, their zeros in fact, aren't at the same level. Does anyone know how to do that (zero at ...

46. Multiple values on the saome date on range axis    jfree.org

Re: Multiple values on the saome date on range axis by paradoxoff Sat Apr 09, 2011 8:21 am For some reason, you cannot add multiple items with the same y value to a TimeSeries. However, you can convert the time stamp to a normal number and use an XYSeries. See example below: Code: Select all public class TimeSeriesChartDemo2 extends ApplicationFrame ...

47. Dynamic Time Series with Multiple Axis    jfree.org

Dynamic Time Series with Multiple Axis by Lotarque Thu Jun 09, 2011 10:08 pm Hi, i'm trying to plot many curves( TimeSeries ) into one chart. Besides, I do need to use Multiple Axis chart, because each TimeSeries "curve" has to be plotted against a related range Axis perfectly. The range axis is defined by user, so if the range ...