We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Cannot read the ChartSetting Attributes from report definition

According to your example(http://bi.syncfusion.com/demos/aspnet/OLAPChart/Defining%20Reports/Report%20In%20File/CS/ReportInFile.aspx),
I have tried to change the setting of "<ChartType>Line</ChartType>" from column to line, but it doesn't work. Please comment.

The attachment shows the chart setting of the report definition.


ReportDefinition__ChartStyle_cba2c3ea.zip

1 Reply

SA Solai A L Syncfusion Team October 11, 2013 01:17 PM UTC

Hi Ericpoon,

Please add the following code in your sample to get the chart type modified. The below sample illustrates the same.

Code Snippet[c#]:

void Page_Load(object sender, EventArgs e)

{

this.OlapChart1.ChartSeriesType = (ChartSeriesType)Enum.Parse(typeof(ChartSeriesType), DataManager.CurrentReport.ChartSettings.ChartType);//add this line before DataBind.

DataBind();

}

Sample:http://www.syncfusion.com/downloads/support/directtrac/general/OLAPChartSample-806105540.zip

Please let us know if you have any concerns.

Thanks,

AL.Solai.


Loader.
Live Chat Icon For mobile
Up arrow icon