Single axis graphs in JFreechart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
ekta1994
Posts: 26
Joined: Fri May 12, 2017 8:06 am
antibot: No, of course not.

Single axis graphs in JFreechart

Post by ekta1994 » Fri Aug 04, 2017 12:59 pm

An idea to plot graphs like this (https://i.stack.imgur.com/AxMUu.gif) in JFreechart? Event graphs having only one axis. Example, showing the occurrence of any event at a particular time. No value or anything to put on y axis.
Any help will be appreciated!
Thanks

paradoxoff
Posts: 1634
Joined: Sat Feb 17, 2007 1:51 pm

Re: Single axis graphs in JFreechart

Post by paradoxoff » Fri Aug 04, 2017 5:35 pm

Use an XYPlot, give the y axis a fixed scale (say, 1), then add your data points where x denotes the time and z has a constant value of 0.5:

ekta1994
Posts: 26
Joined: Fri May 12, 2017 8:06 am
antibot: No, of course not.

Re: Single axis graphs in JFreechart

Post by ekta1994 » Mon Aug 07, 2017 9:18 am

What do you mean by the z value?

paradoxoff
Posts: 1634
Joined: Sat Feb 17, 2007 1:51 pm

Re: Single axis graphs in JFreechart

Post by paradoxoff » Mon Aug 07, 2017 4:07 pm

I intended to type "y" but used a Keyboard with a wrong layout :-)

Locked