Click here to Skip to main content
15,889,808 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Is there anyway to fill the area under a curve with gradient-by-value using Zedgraph? I know how to that with the symbol, bar, and segment line. But I could not do it with the are under the curve. I would like to have something like: Dark red (the color of the area under the curve) at 0, red up until "a" value. Light Green above "a" values. Dark green at and above "b" values. Something like the Gradient-by-value Zedgraph demo with symbol but now with the area under the curve. Something like the thermal chart, red=hot at certain values then lighter red->yellow->light blue->blue=cool.

I have tried the GradientZ fill type but it seems works only for symbol and bar. Not for the area under the curve

Thank you,
Anh
Posted

Did you check on the Zedgraph forums? They might have an answer to your question.
 
Share this answer
 
Zedgraph forum? Do you mean the Zedgraph Discussion in Zedgraph wiki??? If so, there is not an answer for this question. If not, please let me know where is the Zedgraph forum? I did google search and it showed only the Discussion talk in Zedgraph Wiki.

Thank you
 
Share this answer
 
I know how to do it now, anyway. Here what I have done:
1. Smooth the curve with many added points (using interpolate)
2. Break the curve to 2 Curve type: under "a" and above "a" curves.
3. Fill the area each curves.
Regards,
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900