1. #1
    Sencha User
    Join Date
    Feb 2011
    Posts
    63
    Vote Rating
    9
    maslofer will become famous soon enough

      0  

    Default Unanswered: Charts: Fill between two lines

    Unanswered: Charts: Fill between two lines


    Using the Area chart or the "fill" property it is possible to create an area chart that fills to the horizontal axis.

    However, is it possible to specify another series as the lower boundary of the fill instead of the horizontal axis. In effect, is is possible to create an area chart where the area is defined by an upper and lower boundary line?

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,154
    Vote Rating
    475
    Answers
    685
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Any chance of an illustration of what you are looking for?

    Scott.

  3. #3
    Sencha User
    Join Date
    Feb 2011
    Posts
    63
    Vote Rating
    9
    maslofer will become famous soon enough

      0  

    Default


    Something sort of like this.

    http://peltiertech.com/images/2009-0...Fill2003_8.png

    A fill area specified by an upper and lower bound. The current fill option just fills to an x-axis. It would be nice if you could pass a boundary to the fill config option (in this case the upper and lower lines would need to be styled the same unlike in the picture, which would be fine for my needs).

    -Scott

  4. #4
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,154
    Vote Rating
    475
    Answers
    685
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    You could probably do this with a 2 area series where the top series was white. In looking at the following example, you can get the idea:
    http://dev.sencha.com/deploy/ext-4.1...arts/Area.html

    Where the blue is your region and the greed would be white.

    You would then need to add the line series to each set of peaks.

    Scott.
    Last edited by scottmartin; 30 Jul 2012 at 6:43 AM. Reason: More info

  5. #5
    Sencha User
    Join Date
    Feb 2011
    Posts
    63
    Vote Rating
    9
    maslofer will become famous soon enough

      0  

    Default


    You're right, that's a good idea.

    I'll give that a try.

Thread Participants: 1