I have created a report in Active Reports (.rpx file) which contains a chartcontrol 'ChartControl1'. Report Datasource is List which contains 'ItemLabel' and 'ItemValue' fields Script file contains following line of code.
public void ActiveReport_ReportStart()
{
this.ChartControl1.DataSource = rpt.DataSource;
this.ChartControl1.Series[0].ValueMemberX = "ItemLabel";
this.ChartControl1.Series[0].ValueMembersY = "ItemValue";
}
Apparently i am getting an error which says
"DataSource of type System.String is not supported .Parameter name: genericDataSource"
and this line is causing the problem.
this.ChartControl1.Series[0].ValueMembersY = "ItemValue";
because if i remove this line , there is no error , but report would not render. I have read that this error is happening due to incorrect binding , but it is not the case here as i have doublechecked it.
What could be the issue?