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

How to set the background

3 Answers 127 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 07 Nov 2008, 07:07 PM
Should be a simple question....  How do I change the background color of a chart?

These don't seem to do it for me:

this

 

.RadChart1.Background = new SolidColorBrush(Colors.Blue);

 

this

 

.RadChart1.DefaultView.ChartArea.Background = new SolidColorBrush(Colors.Black);

The only way I have done it so far is to override the whole control template, and set the Background on the WrapPanel....which is very much over-kill.  I must be missing something obvious.  If you want to change the background color of a control, you usually just set the Background property...

Michael

 

3 Answers, 1 is accepted

Sort by
0
Michael
Top achievements
Rank 1
answered on 10 Nov 2008, 03:15 PM
I have figured out how to use various templates to change some of the items, but it is seriously not easy to change the look of this chart control.  For example, I am still unable to change the color of the axes text and lines on a simple bar chart.  Please provide some samples on how to theme everything in the entire chart.  I really like your demo of the chart, but this still feels like a CTP.
0
Vladimir Milev
Telerik team
answered on 11 Nov 2008, 06:15 AM
Hello Michael Stuart,

Thanks for the kind words! And the feedback. The background property is not working because we hardwired the white background into the template, something we didn't have the time to properly style for the release. We are working on removing such issues. As a WPF component, the chart can of course be fully customized by overriding its templates even right now, however, we are with you that it should allow for a much easier customization. We will be specifically targeting ease of use and customizibility this upcoming Q so you will see some big improvements there.

We wholeheartedly agree with you that although RadChart for WPF is the richest wpf chart on the market there is still a lot to be desired from this product. It's still a v1.0 and it will take great feedback like yours to make this a great product like the rest of the telerik rad controls.

Your telerik points have been updated.

All the best,
Vladimir Milev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Michael
Top achievements
Rank 1
answered on 11 Nov 2008, 01:37 PM
Thank you for the response.  I will just use a built-in theme until a later date.  Whatever you can do to make it super easy to completely control the look of everything in the control would be great.  This will probably be one of your most important WPF components, and I do like what you have so far.  I look forward to seeing new improvements in the future.
Tags
Chart
Asked by
Michael
Top achievements
Rank 1
Answers by
Michael
Top achievements
Rank 1
Vladimir Milev
Telerik team
Share this question
or