Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I'm trying to use the .NET Chart Controls in my Sharepoint 2010 Sandbox solution. I have downloaded and installed the MSChart for .NET 3.5 from http://www.microsoft.com/en-us/download/details.aspx?id=14422.

Does anyone know if the .NET Chart Controls are supported in Sharepoint 2010 Sandbox solutions?

I tried to find examples and I can only find examples for Sharepoint 2010 (not Sandbox) and in these you need to add assembly references in you web.config file, which is not possible in Sandbox. This is an example of using .NET Chart in Sharepoint http://mosshowto.blogspot.com.au/2008/12/asp-net-chart-control-sharepoint.html.

I know it's possible to add a web part containing a chart but a requirement for the solution is that it's all done from code in Visual Studio.

share|improve this question

3 Answers 3

up vote 1 down vote accepted

Unfortunately it's NOT possible to use MSChart for .NET 3.5 in a Sandbox solution.

share|improve this answer

We have implemented the .Net 3.5 Chart Control in a SharePoint Visual Web Part and it is working absolutely fine. May I know what Project Template have you created to implement the .Net Chart Control in it?

Implement the .Net 3.5 Chart Control in SharePoint Visual Web Part and it will work. SharePoint Visual Web Parts are always deployed as Farm Solution because the reason is the visual web part project uses an ASP.NET user control, which must be deployed to the “~/_CONTROLTEMPLATES” folder in the SharePoint hive. In order to access this folder, the web part needs to have farm permissions.

Hope this helps you.

Thanks & Best Regards

share|improve this answer
1  
Guess you didn't see where he mentioned "Sandbox-Solution" in the question? –  Ryan May 29 '12 at 7:43
    
Hi Ryan, i hope u read my reply.. I have asked him a question so that I can provide him with an answer. –  Zakir HC May 30 '12 at 12:26
    
Zakir - the orig question specifically asked how to do charting with a sandbox compatible web part. You've given him an answer that will not work in the sandbox. What have I misunderstood? –  Ryan May 30 '12 at 14:16

If you want to generate chart in sandbox solution then Jquery is best option for that See this link for google chart jquery plugin

http://www.maxb.net/scripts/jgcharts/include/demo/

share|improve this answer
    
I know that is an solution but not what I'm looking for. –  Høgsdal May 30 '12 at 1:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.