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

Can you set a background for your plotarea?

2 Answers 143 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Joel
Top achievements
Rank 1
Joel asked on 11 Mar 2011, 05:58 AM
So i have my background set to a specific color, but I alway want to be able to overlay a png with transparent setction.

If I just need to be able to use the chart as a background I'd use the imagebrush for the background and be done with it.

Is there a way I can set the background to a color AND have a background image?

2 Answers, 1 is accepted

Sort by
0
Sia
Telerik team
answered on 16 Mar 2011, 12:59 PM
Hi Joel,

I am not sure what is your goal, that is why it would be very helpful if you send us an image showing the desired look. You can set background (image or color) to the RadChart and the ChartArea. So you can set an image as background of your RadChart and background color for the ChartArea.

Here is an example:
<telerikChart:RadChart x:Name="RadChart1" Background="Yellow">
            <telerikChart:RadChart.DefaultView>
                <telerikCharting:ChartDefaultView>
                    <telerikCharting:ChartDefaultView.ChartArea>
                        <telerikCharting:ChartArea Legend="{Binding ElementName=Legend1}" Background="#99FFFFFF" />
                    </telerikCharting:ChartDefaultView.ChartArea>
                    <telerikCharting:ChartDefaultView.ChartLegend>
                        <telerikCharting:ChartLegend x:Name="Legend1" />
                    </telerikCharting:ChartDefaultView.ChartLegend>
                </telerikCharting:ChartDefaultView>
            </telerikChart:RadChart.DefaultView>
 </telerikChart:RadChart>

I hope this helps.

Best wishes,
Sia
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
LoginiMoon
Top achievements
Rank 1
answered on 15 Feb 2021, 06:41 PM
could you give a sample code to set the plotarea with an external image
Tags
Chart
Asked by
Joel
Top achievements
Rank 1
Answers by
Sia
Telerik team
LoginiMoon
Top achievements
Rank 1
Share this question
or