Parallel straight line not drawn in timeseries chart(1.0.10)

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
3x3cUtIoNe34
Posts: 1
Joined: Thu Jun 12, 2014 8:13 am
antibot: No, of course not.

Parallel straight line not drawn in timeseries chart(1.0.10)

Post by 3x3cUtIoNe34 » Fri Jul 18, 2014 11:26 am

Hi , I am using JFreechart 1.0.10.

I am trying to create TimeSeries chart in MilliSeconds.

In some cases , I am having values in Y-axis , which do not change over time. So , for them , I should be getting a straight line parallel to X-axis.

But , I can see so straight line is drawn in ChartPanel, only the point is marked in Y-axis.

Any reasons for the problem ?

[EDIT]

If I use

Code: Select all

setAutoRangeIncludesZero
, this problem seems to be solved , but in other cases the chart range seems to be distorted completely.

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: Parallel straight line not drawn in timeseries chart(1.0

Post by david.gilbert » Wed Jul 23, 2014 9:18 am

You need to post a small self contained example program to illustrate the problem. I can't think of a reason why this wouldn't work in JFreeChart 1.0.10 but, in any case, you should check the latest version (1.0.18) to see if the problem is the same with the latest code.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked