This is a migrated thread and some comments may be shown as answers.

How can I make a multi-colored background?

1 Answer 79 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Nathan
Top achievements
Rank 1
Nathan asked on 22 Jun 2018, 08:46 PM

I'm interested in changing the background of the plotting area to a custom background where the top half is one color and the bottom half is another color.  I've attached an image demonstrating the desired effect, though in the image the colors are "on-top" of the points, where I'd like them to be below.  How might I achieve this with Telerik's RadChartView?

 

 

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 25 Jun 2018, 11:04 AM
Hello, Nathan,   

By design, RadChartView renders a ChartGrid when the CartesianArea.ShowGrid property is set to true. The CartesianArea.Grid exposed several properties that you can customize the style of the background grid behind the series. However, it allows you to alternate the colors. In case you need to achieve the illustrated result on the screenshot, you can use CartesianPlotBandAnnotations. Thus, you can specify the values ranges of the two annotations and the color you want to be used for filling the area. Additional information for the CartesianPlotBandAnnotations is available here: https://docs.telerik.com/devtools/winforms/chartview/features/annotations/plot-band

I hope this information helps. If you have any additional questions, please let me know. 

Regards,
Dess
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
ChartView
Asked by
Nathan
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or