plot « Axis « JFreeChart Q&A

JFreeChart Q&A
JFreeChart Q&A » Axis » plot 

1. Is it possible to manipulate the position of the Domain axis in a JFreeChart plot?

I have a dataset that I want to display as a pair of histograms/barcharts. One set of data, I want to display as a "positive" set of values rising upwards. The ...

2. JFreechart. Axis labels inside a plot

Is there any way to draw JFreeChart graph with axis labels placed inside a plot? I'm writing an app with many chart panels in a single screen, labels oriented inside a ...

3. how do i get plot x Axis every 5 minute (JFreechart)

import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.util.Locale; import javax.swing.*; import org.jfree.*; import org.jfree.chart.ChartPanel; import org.jfree.chart.JFreeChart; import org.jfree.chart.axis.DateAxis; import org.jfree.chart.axis.NumberAxis; import org.jfree.chart.plot.XYPlot; import org.jfree.chart.renderer.xy.XYItemRenderer; import org.jfree.chart.renderer.xy.XYLineAndShapeRenderer; import; import; import; import org.jfree.ui.RectangleInsets; import org.jfree.ui.RefineryUtilities; /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * ...

4. TimeSeries Plot - Axis manipulation

I have a TimeSeries plot with data series containing data for whole day. I want an ability to show only part of the series. For example, if users want to see plot for whole day, they get entire series. If they want only between say, 10:00 am to 3:00 pm., then thats what we show. I know this is possible. My ...

5. Plotting Data Ranges on x axis

Hi, I want to know if there is a way to plot data ranges on the x-axis rather than the all the data. I am creating a Line Chart. For example I am using DefaultCategoryDataSet to add all the values retrieved from the database. The values are like "0.1 , 10" ;"0.4,5" where 0.1 and 0.4 are the values to be ...

6. The Y axis plot gets deviated from its expected plot point

The Y axis plot gets deviated from its expected plot point by skkuchipudi Wed Sep 20, 2006 10:44 am The Y axis plot gets deviated from its expect plot point in X axis Code: Select all package test.twacs; import java.awt.*; import; import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartPanel; import org.jfree.chart.JFreeChart; import org.jfree.chart.ChartUtilities; import org.jfree.chart.axis.NumberAxis; import org.jfree.chart.axis.CategoryAxis; import org.jfree.chart.axis.CategoryLabelPositions; import org.jfree.chart.plot.PlotOrientation; import org.jfree.chart.plot.XYPlot; ...

7. Display Scatter Plot with TimeSeries Axis.

Hi everyone, I am the big fan of JfreeChart ! My boss is very impressive with what I can do with JfreeChart. Now I have a question, I am drawing a scatter Plot. But I would like to display the X-Axis as Time Series Axis. Can it be done with the JFreeChart libraries or do I have to make a new ...

8. How can i plot scatterd plot for x axis values as string..

Hii friends... Plz help me.. If any one Know this.. i am having string values in X-axis and numbers in y-axis.. can i plot string verses number in scatter plot... why i want is . In this we go for adding the values to the XYSeries .For adding the values it is taking parameter as (number, double).... is it possible to ...

9. How to Plot Shapes along Axis?

Greetings, I'm looking for a way to plot shapes/points along an axis (in my case, the x-axis) on an XYLineChart. I have event data that only has an X-coordinate value. I can create a dataset, and set the corresponding Y-values to zero, but I can't depend on the chart always having zero as the lower bound (it might be variable). My ...

10. hexadecimal values on plot axis

Thanks to some offline thinking and help from David Gilbert, here is the solution: Code: Select all import java.text.*; public class HexNumberFormat extends NumberFormat { public static final int BYTE = 2; public static final int WORD = 4; public static final int DWORD = 8; ...

11. Plot all dates on DateAxis

Hi, I've been googling + searching all over the forum + digging all through the source, and still can't find the answer I have a TimeSeries chart w/ about 120 points on the X axis, and I want to plot all of them. In other words, i want a tick + label for each date on the x axis. Can someone ...

12. Plot NULL value in Y-Axis

Hi. I have some line charts and I need some help with a little thing. My X-Axis is dates, but have dates with no values for Y-Axis. Then, I need to plot X-Axis value but I don't want to plot the value for Y-Axis. I want to break the line and start it again in the next date. Is possible to ...

13. plotting Hour 12 am to 11 pm on x axis

please help me , i am plotting count / hour graph using time series chart . it display range of time for example 2 am - 10 pm only not the data not plotting rest of hours . exampe 12 am to 11 pm ..... please help me plotting it . thnaks a lot Ashwin

15. Alignment of Plot start point on the Domain Axis problem

Alignment of Plot start point on the Domain Axis problem by determen77 Mon Aug 20, 2007 3:23 pm Below is my response to a previous thread. I am looking into which JFree Chart classes(and methods) allow for the alignment of the start point(plot painting) of a Times Series chart. With dynamic charts, the default plot start point is over on ...

16. How to align Plot Areas of XYPlots with Symbol/Number Axis

I am having trouble aligning XYPlots of the same timeframe. I have multiple XYPlots on top of each other. I am forcing each XY Domain Axis to be the same range. However, the width of the range axis's for each plot are not equal. For example, one XYPlot uses a Symbol Axis which is a lot wider (since Im using strings ...

17. Set axis location within plot?

18. Plotting dates on the x axis

My dataset has the following 2/18/2008 5184210 23 9 2/19/2008 6480259 22 17 2/20/2008 7517159 24 20 2/21/2008 5443390 16 7 2/22/2008 9720128 22 14 2/23/2008 11405588 20 24 2/24/2008 9072538 15 19 My code to plot on the x axis is Code: Select all ...

20. How to Set Scatter plot x-axis visibility to false?

Hi, How do i set the x-axis visibility to false? i am using XYSeriesCollection dataset = new XYSeriesCollection(); XYSeries[] series = new XYSeries[10]; dataset.addSeries(series[0]); JFreeChart chart = ChartFactory.createScatterPlot( "Scatter Plot Demo", // title "X", "Y", // axis labels dataset, // dataset PlotOrientation.VERTICAL, true, // legend? yes true, // tooltips? yes false // URLs? no ); ChartPanel chartPanel = new ChartPanel(chart);

21. Axis labels & ticks gets distorted when a plot is resized?

I am generating some heatmaps from datasets in which the size is not known prior to runtime. One might be 10 x 10, another might be 10 x 200. This means that the user will likely be resizing the plot window to get the best looking view. However, I'm noticing that when plots are resized, the texts on the domain/range axes ...

22. How to implement 2 differ. domain axis w/ the same plot data

Hello, I've recorded geo data (and more) with a timestamp and/or distance since recording start. In my application the user should have the posibility to toggle (with a push button) the domain axis for plot. Either the timestamp or the distance since starting. Is there a easy way to implement this feature? I'll not create the plot data at every toggle ...

23. How to Remove Plot (TimeSeries) Label in x-axis

Each time series is required to have a unique key which, by default, is used as the label in the legend. You'll run into trouble if you start assigning empty strings as TimeSeries keys. There is a setSeriesVisibleInLegend() method that you can use to exclude certain series from the legend. Or you can set the legend to null if you don't ...

25. Scatter plot with date axis

Scatter plot with date axis by jcd Thu Jan 21, 2010 12:18 pm I need to draw a scatter plot with date on x-axis and values on the y-axis. I'm having this weird problem....i'm unable to convert the numberaxis to dateaxis in a scatter plot....but the same works fine with a timeseries plot.... here is the code: Code: Select all ...

27. Spider Web Plot and labeled Axis

28. manually plotting x-axis week values

Hello experts and thanks in advance for any advice you can give me. I have been down many roads trying to get this to work and have researched in these forums for the past week with no luck. I am trying to plot specific week values on the x-axis of the stacked bar chart below. I would like the week label ...  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.