Square Wave chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
marcio.nandi
Posts: 5
Joined: Wed Sep 09, 2015 2:47 pm
antibot: No, of course not.

Square Wave chart

Post by marcio.nandi » Wed Sep 09, 2015 3:28 pm

Hello. My name is Marcio and I am brasilian. I have a problem in my work because I didn't found how to plot a specific chart. Well, I need to plot a dinamic chart (but this is not the problem), this chart is a square wave that has a timesequence in the X axis and a number of categories (built in runTime) in the Y axis, and it must be categories, not numbers, I tried to use a LineStepChart and represent the categories with numbers but didn't work because the Y axis must show the categories. Sorry for any english mistake. Any help will be useful!! And thank you in advance.

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

Re: Square Wave chart

Post by paradoxoff » Wed Sep 09, 2015 4:25 pm

Use a SymbolAxis as y axis. Though this axis is a ValueAxis, it looks like a CategoryAxis, i.e. it can easily be used to show non-numeric tick labels.
Here is an example.

Locked