Drawing a colour bar on/together with NumberAxis

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
shertys
Posts: 4
Joined: Thu Jun 12, 2014 2:30 am
antibot: No, of course not.

Drawing a colour bar on/together with NumberAxis

Post by shertys » Mon Jun 23, 2014 9:25 am

Hi,

Any idea how can I draw a colour bar together with the NumberAxis of the DomainAxis?

Thank you.

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

Re: Drawing a colour bar on/together with NumberAxis

Post by david.gilbert » Mon Jun 23, 2014 1:04 pm

Do you have an image of what you are trying to achieve?
David Gilbert
JFreeChart Project Leader

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

shertys
Posts: 4
Joined: Thu Jun 12, 2014 2:30 am
antibot: No, of course not.

Re: Drawing a colour bar on/together with NumberAxis

Post by shertys » Wed Jun 25, 2014 3:07 am

Hi,

It should look something like that.

Image

Thank you.

shertys
Posts: 4
Joined: Thu Jun 12, 2014 2:30 am
antibot: No, of course not.

Re: Drawing a colour bar on/together with NumberAxis

Post by shertys » Thu Jul 03, 2014 1:49 am

Hi,

Anyone can advise on this?
Thanks!

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

Re: Drawing a colour bar on/together with NumberAxis

Post by david.gilbert » Thu Jul 03, 2014 5:47 am

Is that the whole chart or just the axis? There isn't any feature to color bands along the axis, you would need to customize the axis to achieve that.
David Gilbert
JFreeChart Project Leader

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

Locked