Consider a pie chart using the ASP.NET charting controls.
The requirement is around controlling the text that's rendered on the pie chart. The goal is to limit the number of characters on the label. The chart currently is bound to a SqlDataSource
.
alt text http://www.imagechicken.com/uploads/1250716996036841800.png
<asp:Chart ID="myPieChart" runat="server" DataSourceID="myDS">
<Series>
<asp:Series ChartArea="myChartArea" Name="Series1" ChartType="Pie"
XValueType="Int32" XValueMember="SomeName"
YValueMembers="SomeNumber">
</asp:Series>
</Series>
<ChartAreas>
<asp:ChartArea Name="myChartArea">
<AxisY Title="Number"></AxisY>
<AxisX Title="Name"></AxisX>
<Area3DStyle Enable3D="True" Inclination="20" />
</asp:ChartArea>
</ChartAreas>
</asp:Chart>
Question
How would you specify, either in the <asp:Chart>
markup, or in code-behind, to limit the number of characters that are bound/rendered to the pie chart?