fixed category axis - how to?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
arik
Posts: 12
Joined: Mon Feb 21, 2005 7:20 pm

fixed category axis - how to?

Post by arik » Sun Sep 04, 2005 2:52 pm

Hi all,

I have a line chart which has areas with no data, so when there's no data I want the chart to display nothing (no line), but I want it to display the category label.

Somthing like this:

---------------
Jan Feb Mar Apr

If there's no data for Apr just don't display the data but display the category label.

Thank you.

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

Post by david.gilbert » Mon Sep 05, 2005 11:18 am

Set the data value for the category to null. It will still display the category, but no data item.
David Gilbert
JFreeChart Project Leader

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

Guest

Post by Guest » Tue Sep 06, 2005 7:10 am

I did try it, but I get an error... I'm using the 0.9.21 version.
Do you know if it's working in this version too?

Anyway I'll check it again, maybe I did something stupid :) AND I think it's time for upgrade, don't you think!? :wink:

Locked