Dynamically Choose CHart Column
Posted: Mon Jun 05, 2017 12:05 am
Hi,
I'm trying to create a report where a user can pick from a list of columns to use as the value data column in a
clustered column chart. I have RequestParameters set to true on the chart. To keep things simple and to make
sure I have syntax correct I've temporarily hardcoded a column name in the Begin Render event of the chart...
Chart1.Series["S1"].ValueDataColumn = WorkOrders.DepartmentID
I only have one series in the chart and have also tried the following...
Chart1.Series[0].ValueDataColumn = WorkOrders.DepartmentID
Both cases give me the following error message...
"'Stimulsoft.Report.Chart.IStiSeries' does not contain a definition for 'ValueDataColumn' and no extension method 'ValueDataColumn' accepting a first argument of type 'Stimulsoft.Report.Chart.IStiSeries' could be found (are you missing a using directive or an assembly reference?)"
Can you provide direction on the syntax I should be using? Is what I am trying even possible?
I'm trying to create a report where a user can pick from a list of columns to use as the value data column in a
clustered column chart. I have RequestParameters set to true on the chart. To keep things simple and to make
sure I have syntax correct I've temporarily hardcoded a column name in the Begin Render event of the chart...
Chart1.Series["S1"].ValueDataColumn = WorkOrders.DepartmentID
I only have one series in the chart and have also tried the following...
Chart1.Series[0].ValueDataColumn = WorkOrders.DepartmentID
Both cases give me the following error message...
"'Stimulsoft.Report.Chart.IStiSeries' does not contain a definition for 'ValueDataColumn' and no extension method 'ValueDataColumn' accepting a first argument of type 'Stimulsoft.Report.Chart.IStiSeries' could be found (are you missing a using directive or an assembly reference?)"
Can you provide direction on the syntax I should be using? Is what I am trying even possible?