series lines not showing up properly in Jfreechart.

A discussion forum for JFreeChart (a 2D chart library for the Java platform).

series lines not showing up properly in Jfreechart.

Postby Joshi » Wed Sep 27, 2017 6:34 am

Hello, I am plotting XYSeriesCollection where the individual series has XYTextAnnotation as labels,but when am plotting them the plot lines are not showing up properly Image. I want it this way Image.any help will highly save me.thank you.
Joshi
 
Posts: 5
Joined: Tue Sep 26, 2017 12:46 pm

Re: series lines not showing up properly in Jfreechart.

Postby John Matthews » Wed Sep 27, 2017 11:59 am

At a guess, only your first XYSeries is getting initialized correctly; the rest appear to contain (0, 0). A complete example might clarify.
John Matthews
 
Posts: 388
Joined: Wed Sep 12, 2007 3:18 pm

Re: series lines not showing up properly in Jfreechart.

Postby Joshi » Wed Sep 27, 2017 1:23 pm

Thank you john for your response.My chart is dynamic what actually happening is when i get more difference in dataitems while plotting the series,the graph is turning this way.

In my XYSeriesCollection i have two XYSeries where one plots the point(Blue diamond) and the other series plots two points with a line using rendering.Please ask my what else i can provide.
Joshi
 
Posts: 5
Joined: Tue Sep 26, 2017 12:46 pm


Return to JFreeChart

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 8 guests