valueToJava2D « Component « JFreeChart Q&A





1. valueToJava2D - wrong X,Y values in chart    jfree.org

Hi I will tell the whole story... The task is to draw in a Timeseries chart items as vertical lines, the line length should be the lenght of my items, that means : I have objects which has begin time and end time, the line should start in the begin time and ends in the end time, to do this I ...

3. why dont work??? valueToJava2D    jfree.org

public int priceToY(ChartPanel chartPanel, JFreeChart chart, double value){ XYPlot plot = chart.getXYPlot(); ValueAxis rangeAxis = (ValueAxis)plot.getRangeAxis(); Rectangle2D dataArea = chartPanel.getScreenDataArea(0, (int) value); ...

4. Problem with converting using valueToJava2D    jfree.org

I confront with a problem and can not find resolve neither independently nor in this forum. I have frame with ChartPanel. When the chart data is in preparation process (before show panel on the screen) I try to convert some value from chart units to Java2D units but always get 0. I suspect that occurs because ChartPanel not shown yet. But ...

5. ValueToJava2D = 0 ?    jfree.org

ValueToJava2D = 0 ? by valus Mon Jul 21, 2008 2:40 pm Hi everyone. I'm trying to translate some dots of my chart in java2D value. I'll try to explain all i do: here i construct my FRAME : Code: Select all public FrmDotsPlots(FrmFcs xsuper, ArrayList files, ArrayList dotplots) { initComponents(); ...

6. valueToJava2D() returns the same 2D value for 2 diff values    jfree.org

Hi, I am using an XYPlot to plot a Time vs Price chart. I am dynamically calculating the candlestick width for this candlestick chart as shown below. public XYItemRendererState initialise(Graphics2D g2, Rectangle2D dataArea, XYPlot plot, XYDataset dataset, PlotRenderingInfo info) { 1. IntervalXYDataset intervalXYData = (IntervalXYDataset) dataset; 2. ValueAxis domainAxis = plot.getDomainAxis(); 3. double startPos = domainAxis.valueToJava2D(intervalXYData.getStartXValue(0, 0), dataArea, plot.getDomainAxisEdge()); 4. double ...