CombinedDomainXYPlot « Plot « JFreeChart Q&A





1. JFreeChart - Showing/Hiding Subplots in a CombinedDomainXYPlot    stackoverflow.com

Is it possible to show/hide a Subplot in a CombinedDomainXYPlot without using "add" or "remove" ?

6. Laying out plots in a CombinedDomainXYPlot    jfree.org

Hi there, We are using a CombinedDomainXYPlot to display several XYPlots next to each other. Each of these XYPlots can have mutiple range axes. I need to line the up the plot areas so the graphs line up next to each other, and then display all the range axes above the top of the lined up plot areas. (i'll attempt an ...

7. Crosshair Info on CombinedDomainXYPlot    jfree.org

i use code below to display x and y values on mouseMoved event. private void setXY(int mouseX,int mouseY) { //System.out.println("mouseY is ::::" + mouseY); Point2D p = super.translateScreenToJava2D(new Point(mouseX, mouseY)); Point2D p1 = new Point(mouseX, mouseY); // now convert the Java2D coordinate to axis coordinates... XYPlot plot = (XYPlot) this.getChart().getPlot(); ChartRenderingInfo info = this.getChartRenderingInfo(); Rectangle2D dataArea = info.getPlotInfo().getDataArea(); double xx = ...

9. subplot of CombinedDomainXYPlot    jfree.org





11. CombinedDomainXYPlot chart resize    jfree.org

Hi, the following code makes my apps able to resize combined domain charts keeping coordinates conversion effective. I hope this can be useful, since I saw many posts asking about this without any reply. class MyChartContainer() extends JPanel { private JFreeChart m_oChart = null; private ChartPanel m_oChartPanel = null; ........ ........ ........ private void initialize() { this.setLayout(new FlowLayout()); this.setSize(514, 407); this.addComponentListener(new ...

12. CombinedDomainXYPlot chart resize    jfree.org

Hi, the following code makes my apps able to resize combined domain charts keeping coordinates conversion effective. I hope this can be useful, since I saw many posts asking about this without any reply. class MyChartContainer() extends JPanel { private JFreeChart m_oChart = null; private ChartPanel m_oChartPanel = null; ........ ........ ........ private void initialize() { this.setLayout(new FlowLayout()); this.setSize(514, 407); this.addComponentListener(new ...

13. CombinedDomainXYPlot & overlaid XYPlot    jfree.org

Hi, Need to plot multiple line charts Example: Chart 1(basic close data) & Chart 2(moving average) shows up on the same range axis(values) Chart 3(RSI) shows below the first set of charts All charts share the same domain axis(dates) The basic plot is a CombinedDomainXYPlot instance & I'm able to add more sub-plots. Allthough it seems that I'm able to add ...

14. problem with crosshairs on CombinedDomainXYPlot    jfree.org

Code: Select all public void chartMouseClicked(ChartMouseEvent event) { int mouseX = event.getTrigger().getX(); int mouseY = event.getTrigger().getY(); System.out.println("x = " + mouseX + ", y = " + mouseY); ...

16. How to have Crosshairs on a CombinedDomainXYPlot    jfree.org

Hello, I am working on an application that uses a CombinedDomainXYPlot to show multiple subplots. I want to have a vertical (domain) crosshair that moves with the mouse and that appears simultaneously over all of the plots. I believe that I am getting valid mouse XY values. I used code similar to that posted by develop on 23 Mar 2005. So ...





17. CombinedDomainXYPlot and fixed dimension computed ?    jfree.org

Hi, I am trying to find out the fixed size of the Range axis that has been computed by JFC in a CombinedDomainXYPlot. I have hooked up a ChartProgressListner to the chart and on receiving the DRAWING_FINISHED event I am calling the getFixedDimension method on the RangeAxis of each of the subplots to find out the fixed dimension. However it is ...

18. IntervalMarker and CombinedDomainXYPlot    jfree.org

Hi! I'm trying to create a chart with dynamic data and several plots. I'm using the CombinedDomainXYPlot and the idea is to build sth like DynamicDataDemo3.java... but using markers to reflect dangerous levels in the graph, I mean, for example if a graph reaches one upper limit I want to create a red marker to show this state (a kind of ...

20. Controlling size of charts in a CombinedDomainXYPlot    jfree.org

Hi all I just recently started using CombinedDomainXYPlot to do a combined plot and everything seems to work except for one thing. The upper chart is the main one and the lower one is secondary information and should be smaller, the same width but not the same height. I've been unable to find any way to do this. Is it not ...

23. parameter combineddomainxyplot    jfree.org

24. how do i change the domain axes of a combinedDomainXYPlot    jfree.org

Hi I have created a chart that has a COmbinedDomainXYPlot in it. After the chart has been displayed, if i set my cursor on point X1 and drag it to point X2, the graph does not expand such that the lower bound becomes X1 and the upper becomes X2. What can i do to achieve this behaviour, i need this behaviour ...

25. CombinedDomainXYPlot Crosshairs    jfree.org

I have situation where user can turn on and off crosshairs by clicking on button. i have combinedDomainXYplot with some subplots. when user clicks on button (to turn on crosshairs) i do following -- for each subplots on combinedDomainXYPlot call method subplot.setDomainCrosshairVisible(true); subplot.setRangeCrosshairVisible(true); but it does not show up crosshairs, and once its on if user decides to turn that off, ...

26. CombinedDomainXYPlot -- subplots identify ???    jfree.org

I have list of XYPlots which are subplots to CombinedDomainXYPlot. what is the best way to identify the each XYPlot ? for example, when i created. i have price chart as one subplot, volume as another. now when user decides not to see volume chart. so i need to hide. so i need to identify volume plot somehow from list of ...

27. Synchronizing domain crosshairs in CombinedDomainXYPlot    jfree.org

Hi, I have an app that uses the CombinedDomainXYPlot with 2 subplots and I'd like to synchronize the vertical crosshairs. Apparently, by default they are independent. I wrote a simple synchronizer utility class that listens to plot change events, checks if the vertical crosshair has moved in one of the subplots, and, if so, moves the crosshairs to the same position ...

28. Performance issue with CombinedDomainXYPlot using 1.08 jars    jfree.org

Performance issue with CombinedDomainXYPlot using 1.08 jars by GeoChing Tue Nov 27, 2007 12:02 am When I run the code below using 1.06 jfreechart jar, there is no issue with CPU. However, when I re-compile using 1.08 jar, then the CPU spikes to 100% in Windows Task Manager. Any insights? public class CombinedXYPlotDemoGC extends ApplicationFrame { private static final long ...

29. [regression] CombinedDomainXYPlot repaints too often    jfree.org

public void setFixedDomainAxisSpace(AxisSpace space) { AxisSpace prev = getFixedRangeAxisSpace(); if (prev != space && (prev == null || !prev.equals(space))) { super.setFixedDomainAxisSpace(space); } } public void setFixedRangeAxisSpace(AxisSpace space) { AxisSpace ...

31. CombinedDomainXYPlot's RangeAxisSpace not autoadjusted..    jfree.org

Hi, I have a CombinedDomainXYPlot and I have a thread that polls for data and at run time, user can see the chart getting plotted with values continously. The dataset can take values between 0 to 2^64. Basically, I am trying to plot 64 bit counters. Now that issue is that, the RangeAxisSpace does not adjust automatically based on the preferred ...

32. CombinedDomainXYPlot doesn't update    jfree.org

CombinedDomainXYPlot doesn't update by sdhays Tue Apr 01, 2008 5:35 am When using a CombinedDomainXYPlot and one XYPlot subplot, the total plot area won't refresh when you change the visibility of a range axis. Below, I have included sample code, which is just the PriceVolumeDemo2.java, modified to put the main XYPlot plot inside a CombinedDomainXYPlot and a bit of code ...

33. BUG:Vers 1.09, zoomRangeAxis + CombinedDomainXYPlot    jfree.org

Hi, I have posted this in the bug tracking system at sourceforge but it didn't format the code too well so I am re-posting it here. Please feel free to delete one or the other. There appears to be a bug either in ChartPanel or CombinedDomainXYPlot when trying to zoom in/out on the range axis. ChartPanel Code: Select all ...

34. i have a quest about CombinedDomainXYPlot chart    jfree.org

flyteger wrote:you mean is cannot set every subxypolt 's heigth? That's right. The chart will be drawn inside a rectangle that is passed from some external source to the JFreeChart.draw() method - JFreeChart doesn't control the dimensions of this rectangle, it is determined externally (by a Swing layout manager, or a image size within a browser, or a page size in ...

36. CombinedDomainXYPlot, multiple Ranges & XYLineAndShapeRe    jfree.org

CombinedDomainXYPlot, multiple Ranges & XYLineAndShapeRe by hsp707 Sat Oct 04, 2008 8:26 pm Picture_1 Picture_2 Is it even possible to do what I am trying to do here?? I am trying to make a XY chart with common domain axis but different range axis. Each of these range axis has different scales (i.e. lower bound/upper bound and tick units etc.) ...

38. DynamicDataDemo 3/CombinedDomainXYPlot is very SLOW    jfree.org

DynamicDataDemo 3/CombinedDomainXYPlot is very SLOW by gizza Thu Oct 23, 2008 1:15 am Hi everyone, I googled a little bit but I could not find an answer execpt ppl with the same problem. For my a vital sign live chart I am using the DynamicDataDemo 3 from the Developers Guide with little bit of variation. So my chart is fed ...

40. How to position CombinedDomainXYPlot at given X value    jfree.org

I have a CombinedDomainXYPlot, whose domain axis is (at my application level) an integer index from 0 to N. Now my program wants to pan and zoom so that a given X-axis value, xTarget, is centered, and zoom so that a given range, say xWidth, is shown. Is there an example of how to do this cleanly? (The Y-axis should be ...

41. CombinedDomainXYPlot ZoomIn/ZoomOut problem on 1.0.12    jfree.org

CombinedDomainXYPlot ZoomIn/ZoomOut problem on 1.0.12 by baldeath Wed Nov 11, 2009 8:51 pm I'm trying to create a CombinedDomainXYPlot with two subplots. The first subplot shows a graph that i have programmed to allow colors of lines and shapes to change. The second subplot contains three lines showing with different colors the change of the properties on the first graph. ...

42. How to remove subplot from combineddomainxyplot    jfree.org

Thanks, But how do i know which plot its removing? i wanted to remove any specific one. In my case am adding charts to combineddomain on selection, if i unselected that selection then i want to remove that. e.g I have created price-volume chart, now i want to add moving Avg chart to this, again like this i will add couple ...

43. CombinedRangeXYPlot & CombinedDomainXYPlot at the same time    jfree.org

Hi, I display the same data in two charts by using CombinedDomainXYPlot. In the former chart I use 2minute candles while in the latter - 3minute candles. That's excellent! What I've seen is that when I zoom a part of the chart by choosing a rectangle with a mouse on one chart, the domain axis is zoomed, but the range axis ...

44. Crosshair with CombinedDomainXYPlot    jfree.org

Is there a way to set the crosshair so that it draws across all plots in a CombinedDomainXYPlot instead of having to define a separate one for each plot? I'm going to implement a "playthrough" using the domain crosshair and if i only have to position one crosshair life would be easier.

45. How to plot only one subplot in CombinedDomainXYPlot ?    jfree.org

Hi, I would be helpful if anyone can tell me how to plot ONLY one subplot at a time in CombinedDomainXYPlot. I have 5 subplots in CombinedDomainXYPlot and each time when I want to update a subplot it draws all the 5 plots. It takes too much time because each subplot has around 100k points. Thanks for the help. Sush

46. anchoring plots on CombinedDomainXYPlot with multi ranges?    jfree.org

Hi, I currently have CombinedDomainXYPlot with multiple subplots, each one having own, very different range, each one starting at a distinct point on the combined graph (as in MultipleAxisDemo1 of JFreeChart demos). I need all these graphs 'moved' so that they all start (are anchored) at the same single point on the graph, yet I still want to retain their individual ...

49. CombinedDomainXYPlot and XYIntervalSeries    jfree.org

CombinedDomainXYPlot and XYIntervalSeries by pavelv Wed Dec 08, 2010 2:19 pm Hi, I need a combined plot. It works fine but when a subplot is XYIntervalSeriesCollection with XYBarRenderer, nothing is drawn. Other subplots are visible. Please could you look at my code? The wrong plot is plot1. Thanks a lot for any help, Pavel Code: Select all { XYIntervalSeriesCollection tsc1 ...

50. CombinedDomainXYPlot autoscale bug ?    jfree.org

CombinedDomainXYPlot autoscale bug ? by Slartibartfazz Thu Feb 03, 2011 12:58 pm I've upgraded from 1.0.11 to 1.0.13 recently and experienced new autoscale behavior using CombinedDomainXYPlot. The first plot scales incorrectly, look at this: I have to zoom in and re-apply autoscaling to get the correct display : Below you can find some short sample code. Code: Select all private ...

51. LineColor in CombinedDomainXYPlot problem    jfree.org

LineColor in CombinedDomainXYPlot problem by NorthTommy Tue Mar 22, 2011 5:46 pm Hi, first of all - yes I searched the forum - sorry for the case if I missed the right topic - I tried everything I found - but it does not work. Problem: I add two XYPlots with their own XYLineAndShapeRenderer instances. First plot takes two series ...

52. CombinedDomainXYPlot multiple range properties bug    jfree.org

Hello, I am using CombinedDomainXYPlot which has time on domain axis and multiple xyplot subplots. When i right click on chart and select "properties" and want to set the range values for each subplot, "range" tab doesn't show up. If i set range array to CombinedDomainXYPlot, i see that "range" tab becomes visible when i right click on chart and go ...

53. CombinedDomainXYPlot and Independent SubPlots Orientation    jfree.org

Hi, I'm trying to build a CombinedDomainXYPlot with up to four (sub)XYPlots. My problem is that the CombinedDomainXYPlot has to be set into a Horizontal PlotOrientation and all subplots have to be set into a Vertical Orientation manner. So, my share domain axis is a DateAxis and all the subplots ranges have a different range type regarding other metrics. How can ...