answersLogoWhite

0


Best Answer

final XYSeries series1 = new XYSeries("First");

series1.add(1.0, 1.0);

// series1.add(2.0, 4.0);

// series1.add(3.0, 3.0);

// series1.add(4.0, 5.0);

// series1.add(5.0, 5.0);

// series1.add(6.0, 7.0);

// series1.add(7.0, 7.0);

// series1.add(8.0, 8.0);

final XYSeries series2 = new XYSeries("Second");

series2.add(1.0, 1.0);

// series2.add(2.0, 4.0);

// series2.add(3.0, 6.0);

// series2.add(4.0, 8.0);

// series2.add(5.0, 4.0);

// series2.add(6.0, 4.0);

// series2.add(7.0, 2.0);

// series2.add(8.0, 1.0);

final XYSeries series3 = new XYSeries("Third");

series3.add(1.0, 1.0);

// series3.add(4.0, 3.0);

// series3.add(5.0, 2.0);

// series3.add(6.0, 3.0);

// series3.add(7.0, 6.0);

// series3.add(8.0, 3.0);

// series3.add(9.0, 4.0);

// series3.add(10.0, 3.0);

final XYSeriesCollection dataset = new XYSeriesCollection();

dataset.addSeries(series1);

dataset.addSeries(series2);

dataset.addSeries(series3);

JFreeChart chart = ChartFactory.createXYLineChart(

"Line Chart Demo 6", // chart title

"X", // x axis label

"Y", // y axis label

dataset, // data

PlotOrientation.VERTICAL,

true, // include legend

true, // tooltips

false // urls

);

XYPlot xyPlot = (XYPlot) chart.getPlot();

xyPlot.setDomainCrosshairVisible(true);

xyPlot.setRangeCrosshairVisible(true);

XYItemRenderer renderer = xyPlot.getRenderer();

renderer.setSeriesPaint(0, Color.blue);

return chart;

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: When iam using jfreechart for plotting a linechart can i give a point in y axis and find the exact chart intersection point at x axis?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is position and plotting chart?

nothing


What is XY chart in Excel?

It is a chart for plotting points and can also be used to chart lines and curves.


What is plotting a course at sea?

Working out with chart folios ( maps of the ocean ) what way you are going to go. The plotting is done by drawing on the nautical charts . The charts will show everything from water depth to rocks.


What is apparatus dew point temperature?

Intersection of SHR line and saturation line on the Psych Chart


Is a pie chart good for plotting statistical correlations?

No. It is good for showing how each data point compares to the whole data set.


What is the difference between graphs and data charts?

A graph is an image representing a mathematical concept, such as the relationship between a set of linked objects, or that of a set of points and the function operating on those points. A data chart is an image which visually presents the relationship between two data sets, one of which may or may not be a function of the other. There is some overlap, as a particular graph can also be a data chart. For example, a plotting of the parabola defined by the function y=x2 is a graph. A plotting of the variable curve defined by the number of animals in a region vs. the amount of available food is a data chart. And a plotting of the logarithmically-curved line showing how the mass of stars relates to their age could very well be both.


What type of graph is best for plotting the percentages of a whole value in a data set?

A pie chart is one way. But it is not suitable if there are too many categories or if any of them are very large or very small.


What is the Blue federal airway on the VFR terminal area chart?

Class E airspace at low altitude federal airways are indicated by center line. Intersection-arrows are directed towards facilities which establish intersection. Class E airspace at low altitude federal airways are indicated by center line. Intersection -arrow are directed towards facilities which establish intersection. Class E low altitude RNAV 2 routes are indicated by center line.


What button do you hold down to key and drag the sizing handle to snap a chart border to a gridline?

Turn on the snap-to options:Click the chart in the worksheet.Under Drawing Tools on the Format tab, in the Arrange group, click Align.To position shapes or objects to the closest intersection of the grid, click Snap to Grid.You can override the snap-to setting by holding down the ALT key when you click and drag the chart.


How do time-series techniques project the future?

Time-series techniques use trend projections of past economic activity to extend into the future. Projecting is done by plotting data for the past years on a chart and, from the latest data, extending a line into future time


What is a scatter chart?

It is a chart that plots the relationship between two paired sets of data, plotting one set of data from each pair on the horizontal (X) axis, and the second set of data from each pair on the vertical (Y) axis.An example of a paired set of data you could plot using a scatter chart could be the average frequency a couple has sex relative to how many years the couple have been in a relationship.A scatter chart can show the points by themselves or link them with lines, either straight or curved lines. This enables different kinds of charts to be shown, like bell curves or sine waves for example.


What is the name given to a chart drawn on the same worksheet as its data?

Embedded Chart