Nevron Forum

Highlight X Axis Region on NSmoothLine

https://www.nevron.com/Forum/Topic4995.aspx

By Teddy Lambropoulos - Monday, March 14, 2011

Hi all,

I have a simple SmoothLineSeries to plot. Originally all the colors are black for each data point added. What I want to be able to do is given a certain x-axis region, I want to highlight that portion of the SmoothLineSeries. Ideally I would like to be able to color the background of the chart in this x-axis region red OR be able to color the line red when it is within this region. Is there any way to do either? I can describe my problem in more detail if necessary.

Thank you!

By Nevron Support - Monday, March 14, 2011

Hello Teddy,
You can take a look at the following example: http://examplesaspnetchart.nevron.com/
Axes >> Scaling >> Custom Scale Decorations

Hopefully this helps. Let us know if this is the functionality you were looking for.

By Teddy Lambropoulos - Friday, April 8, 2011

I believe it is the functionality I am looking for, but I am having trouble replicating it in my code. All I want to be able to do is color a background portion of the chart red based on an X axis region. Lets say my x-axis ranges from 0 to 100. I would like to be able to color the background of the chart red from values 25 to 50. How would I be able to do that?
By Nevron Support - Monday, April 11, 2011

Hi Teddy,
Check out the following examples:

1. All Examples\Axes\General\Sections - shows how to add an axis section. This allows you defined background + axis scale decoration style based on the range.
2. All Examples\Axes\Attributes\Stripes - shows hot to add range decorations on the back chart wall.

Hope this helps - let us know if you meet any problems.

By Teddy Lambropoulos - Monday, April 11, 2011

It did! Thank you!