Highlight X Axis Region on NSmoothLine


Author
Message
Teddy Lambropoulos
Teddy Lambropoulos
Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)
Group: Forum Members
Posts: 20, Visits: 1

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!


Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

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.



Best Regards,
Nevron Support Team


Teddy Lambropoulos
Teddy Lambropoulos
Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)
Group: Forum Members
Posts: 20, Visits: 1
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?
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

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.



Best Regards,
Nevron Support Team


Teddy Lambropoulos
Teddy Lambropoulos
Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)
Group: Forum Members
Posts: 20, Visits: 1
It did! Thank you!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search