1

I would like to be able to have several different "zones" indicated by the background on my jqplot bar chart.

I have looked through the documentation, but have been unable to easily identify a way to do this.

Is there a simple "fill" function or parameter that would allow me to set the background in several bands of horizontal color (various heights)?

Thanks in advance.

FG

flamegri11ed
  • 53
  • 2
  • 8
  • Check my related question [here](http://stackoverflow.com/questions/10837997/jqplot-how-to-color-parts-of-background-grid-with-several-different-colors) – sdespont Jun 22 '12 at 12:16

2 Answers2

2

You can also use the rectangle overlay developed by Bruno Harbulot : https://bitbucket.org/harbulot/jqplot

Here is a jsFiddle sample : http://jsfiddle.net/K2cVL/1/

Flyers
  • 21
  • 2
1

I would use a similar approach as I suggest in the answer to a different question here.

A direct link to the code sample.

You would then set the sizes of the underlying lines accordingly to highlight your regions. This approach is for example used by @Katya presented in the link under one of the comments to the aforementioned answer.

Direct link to Katya's code sample.

Community
  • 1
  • 1
Boro
  • 7,913
  • 4
  • 43
  • 85