I'm attempting to use my first RadHtmlChart (pie chart). The SqlDataSource provides the following:
+---------------------------+--------------------+
| stat | StatCount |
+---------------------------+--------------------+
|Closed | 4067 |
+---------------------------+--------------------+
|Pending Assignment | 1 |
+---------------------------+--------------------+
|QA Ready | 600 |
+---------------------------+--------------------+
|In QA | 400 |
+---------------------------+--------------------+
|Assigned | 4946 |
+---------------------------+--------------------+
The RadHtmlChart:
<telerik:RadHtmlChart runat="server" ID="rhc_assnmtStats" Transitions="true" Skin="Default" DataSourceID="sdsAssnmtStats" > <PlotArea> <Series> <telerik:PieSeries StartAngle="90"> <LabelsAppearance Position="OutsideEnd"></LabelsAppearance> <SeriesItems> <telerik:PieSeriesItem Name="stat" Visible="true" VisibleInLegend="true" Y="StatCount" /> </SeriesItems> </telerik:PieSeries> </Series> </PlotArea> <Legend> <Appearance Position="Right" Visible="true"></Appearance> </Legend> <ChartTitle Text="Assignment Counts by Status"> <Appearance Align="Center" Position="Top"></Appearance> </ChartTitle> </telerik:RadHtmlChart>
Error message:
Cannot create an object of type 'System.Nullable`1[[System.Decimal, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]' from its string representation 'StatCount' for the 'Y' property.
What am I doing incorrectly?
Thanks,
J