adityamishra90 / core-plot

Automatically exported from code.google.com/p/core-plot
0 stars 0 forks source link

Two fills for a single scatter plot #210

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Scatter plots can have a fill under them. It would be better if you could set 
two fills, one for when the base value is below the graph, and one for when the 
base value is above the graph.

Original issue reported on code.google.com by drewmcco...@mac.com on 13 Oct 2010 at 9:39

GoogleCodeExporter commented 8 years ago
This issue was closed by revision c6eab124bd.

Original comment by eskr...@mac.com on 5 Nov 2010 at 1:19

GoogleCodeExporter commented 8 years ago
Thanks so much!

Original comment by hungson...@gmail.com on 10 Nov 2010 at 5:48

GoogleCodeExporter commented 8 years ago
I checked it out, but It is not as my expectation :(, it would be better if 
there is just only one areaBaseValue, but 2 areaFills, one for fill gradient 
above areaBaseValue and the other for below.

Anyway, thanks for your supports!

Original comment by hungson...@gmail.com on 10 Nov 2010 at 8:39

GoogleCodeExporter commented 8 years ago
I misunderstood what you were looking for. You can do that, too. You can set a 
"background limit band". See the Axis demo in CPTestApp for an example.

Original comment by eskr...@mac.com on 10 Nov 2010 at 12:05

GoogleCodeExporter commented 8 years ago
Yes, I did a trick that separate my chart in to 3 smaller charts:
- The first one is consist all value points which are greater than or equal 
base value, this one would be filled in green
- The second one is base value line, this one is filled in red
- The last one is consist all value point less than base value, this one is 
filled by a same color with background color.

But it would be faster if there is just only one chart, so I will try to take a 
look at CPScatterPlot.

Original comment by hungson...@gmail.com on 11 Nov 2010 at 3:01