can you please guide me on how to set an image on to a chart background, ive tried everything but im unable to set a background to my chart it always shows blank, do also please guide me on where to put the image file in order to reference it.
3 Answers, 1 is accepted
answered on 15 Sep 2010, 02:51 PM
Thank you for contacting us. To set an image as background of your chart do the following:
Add new folder to your Web Site in Visual Studio. Paste your image there. In my code snippet below the folder is named Images.
Add this code snippet in your Default.aspx between <telerik:radChart> and </telerik:radChart>
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Is there a way to do this in code behind as well? I build the graphs dynamically in code and then add them to a placeholder. I would like to set a background image to the radhtmlchart as well. did find the chart.Appearance.FillStyle object, but this contains backgroundcolor and viewstate properties only.
answered on 29 Sep 2014, 08:11 AM
I can suggest that you do the following:
- Leave the transparent background color of the chart's plot area.
- Wrap the chart inside a div element.
- Set the desired background image to the chart's wrapper.