ChartPart for SharePoint installation instructions

To install ChartPart for SharePoint follow these instructions:

Prerequisities

  1. Verify that you have Windows SharePoint Services 3.0 or Microsoft Office SharePoint Server 2007
  2. Install Microsoft .NET 3.5 Service Pack 1
  3. Install the Microsoft Chart Controls for Microsoft .NET Framework 3.5
  4. Download the latest release of ChartPart

Deploy Chart Control settings to your web server

To install the MSChartControls.wsp (1.0.0.730) package to your front-end web servers follow these steps:
  • Add Solution *
1) stsadm -o addsolution –filename MSChartControls.wsp
2) stsadm -o execadmsvcjobs
  • Deploy Solution *
Either you can deploy your solution using the Central Administration site (Operations->Solution Management) or as follows:
1) stsadm -o deploysolution -name MSChartControls.wsp -immediate –allowgacdeployment
2) stsadm -o execadmsvcjobs
  • Verify that Solution is deployed *
To verify that the solution is deployed correctly go to Central Administration -> Operations -> Solution Management and look for the mschartcontrols.wsp. It should look like this:

Activate the Chart Controls Solution on your Web Application

To be able to use the ChartPart for SharePoint you have to activate the feature on the Web Application that you will use the ChartPart on like this:
1) Go to Central Administration
2) Go to Application Management
3) Select Manage Web Application Features
4) Verify that you have selected the correct Web Application in the top right corner
5) Click Activate on the Microsoft Chart Controls Feature.

Manual installation of Chart Controls

If you do not want to install this Chart Control Feature, then you can make the changes manually in the web.config of the Web Applications. Add the following line to all the WFEs and Web Application where you want the Chart Controls enabled:
<appSettings> <add key="ChartImageHandler" value="storage=memory;timeout=20;" /> </appSettings>

Deploy the ChartPart Web Parts to your Web Application

To install the Chart Part for SharePoint Web Parts you first have to install the Chart Controls, as above, and activated it on the Web Application you will install the ChartPart for SharePoint to, and then follow these steps:
  • Add the solution *
This adds your solution to the server
1) stsadm -o addsolution -filename “ChartPart 2.0.wsp”
2) stsadm -o execadmsvcjobs
  • Deploy the solution *
You can deploy the solution using Central Administration->Operations->Solution Management and select the Web Application on which you enabled the Chart Controls.
You can also do this manually to your Web Application. This deploys your solution to the selected Web Application. Replace <url> with the Url of your Web Application.
1) stsadm -o deploysolution -name “Chartpart 2.0.wsp” -immediate -allowCasPolicies -url <url>
2) stsadm -o execadmsvcjobs
  • Activate the feature on your Site Collection *
Now all you have to do is activate the feature on the selected Site Collection.
1) Go to Site Settings for your top-level site
2) Go To Site Collection Features
3) Activate the ChartPart for SharePoint feature
4) Now you can add ChartParts on every site in your Site Collection.
Last edited Sep 13 at 7:13 PM by wictor, version 6
Comments
michellij Jun 7 at 5:14 AM 
after i apply the ChartPart settings, i receive the error "error executing child request for ChartImg.axd"

guru_mt Jun 11 at 12:16 PM 
I have installed the chartpart Using the SharePoint installer setup.exe , but when i tried to add the webpart i am not able to find the chartpart webpart in the list, please help me here.

guru_mt Jun 12 at 1:16 PM 
Hi,

i was able to install the chartpart, but when i dragged it into the home page i am getting the following error.

An exception occurred:System.FormatException: Input string was not in a correct format. at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt) at System.Double.Parse(String s, NumberStyles style, NumberFormatInfo info) at System.Double.Parse(String s, IFormatProvider provider) at ChartPart.ChartPartWebPart.GenerateChart() at ChartPart.ChartPartWebPart.Render(HtmlTextWriter writer)

so please help me to resolve this.

thanks,
guru

hamidi Oct 10 at 6:48 AM 
i've done the above. although erroneously, but it works and the web part has been added to the site. but it doesn't draw a chart. instead, i get the following error:

An exception occurred:System.IO.DirectoryNotFoundException: Invalid temp directory in chart handler configuration [c:\TempImageFiles\]. at System.Web.UI.DataVisualization.Charting.ChartHttpHandlerSettings.Inspect() at System.Web.UI.DataVisualization.Charting.ChartHttpHandlerSettings.ParseParams(String parameters) at System.Web.UI.DataVisualization.Charting.ChartHttpHandlerSettings..ctor(String parameters) at System.Web.UI.DataVisualization.Charting.ChartHttpHandler.InitializeParameters() at System.Web.UI.DataVisualization.Charting.ChartHttpHandler.EnsureInitialized(Boolean hardCheck) at System.Web.UI.DataVisualization.Charting.Chart.GetImageStorageMode() at System.Web.UI.DataVisualization.Charting.Chart.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at ChartPart.ChartPartWebPart.Render(HtmlTextWriter writer)

what's the problem and how can i fix it?
thx

hamidi Oct 10 at 7:05 AM 
even after creating the folder, i get this error.
why?

wictor Oct 11 at 11:33 AM 
Make sure that you have enabled the MSChartControls feature on your web application.

qaracter Nov 14 at 11:58 AM 
Hi Wictor,

I've got the same problem hamidi explained. I've checked the MSChartControls feature is already enabled in my web app.

Any suggestion?

Thanks

Updating...
© 2006-2009 Microsoft | About CodePlex | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2009.10.27.15987