I was getting below error when I was working with Chart Webpart with SharePoint 2010
A Microsoft SharePoint Server State Service error occurred while processing your request
To solve this problem, Go Central Administration
Go to Configuration wizard
Go to
Farm Configuration
Launch the Farm Configuration Wizard
Complete the wizard, this will solve your problem