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

How to add a css style on a RadChart

1 Answer 69 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Herman Gouw
Top achievements
Rank 2
Herman Gouw asked on 08 Jul 2011, 07:43 AM
On the web pages of my current projects I have a RadChart.

I need to give the following css styles for the RadChart to be displayed correctly:
margin-left:auto
margin:right:auto


I notice that unlike in RadGrid, RadChart does not have the property CssClass.

Can you please tell me how to add these css styles to a RadChart?
Thanks for your help.

Regards,
Herman

1 Answer, 1 is accepted

Sort by
0
Bartholomeo Rocca
Top achievements
Rank 1
answered on 13 Jul 2011, 11:47 AM
Hello Herman,

RadChart is a server-side ASP.NET control that renders a static image on the client and it cannot be customized through CSS style selectors -- you will need to use the public control API instead (e.g. RadChart.PlotArea.Appearance.Dimensions.Margins).


Greetings,
Bart.
Tags
Chart (Obsolete)
Asked by
Herman Gouw
Top achievements
Rank 2
Answers by
Bartholomeo Rocca
Top achievements
Rank 1
Share this question
or