Totals by year bar chart?

Thread is closed for posting
2 posts, 0 answers
  1. Digital Man
    Digital Man avatar
    126 posts
    Member since:
    Nov 2003

    Posted 21 Mar 2011 Link to this post

    Am having a heck of a time figuring this chart stuff out. All I want is a simple horizontal bar graph showing current year and previous year totals. The y axis would be fixed and just have "2011" and "2010" as labels. The x axis would auto scale the totals. And I'd like the totals to appear as text within the bar as well. Can someone please give me an example of this working? Thanks.
  2. Digital Man
    Digital Man avatar
    126 posts
    Member since:
    Nov 2003

    Posted 22 Mar 2011 Link to this post

    In case this helps anyone else I figured it out. Here's a static example.

     <telerik:RadChart id="rcTotals" runat="server" Skin="Telerik" AutoLayout="True" IntelligentLabelsEnabled="True" SeriesOrientation="Horizontal" Width="800">
                            <ChartTitle TextBlock-Text="Yearly Totals"></ChartTitle>
                            <Legend Visible="false"></Legend>
                            <Series>
                                <telerik:ChartSeries Type="Bar" DefaultLabelValue="#Y{C}">
                                    <Items>
                                        <telerik:ChartSeriesItem Name="Item1" YValue="32749" XValue="2011">
                                        </telerik:ChartSeriesItem>
                                        <telerik:ChartSeriesItem Name="Item2" YValue="87361" XValue="2010">
                                        </telerik:ChartSeriesItem>
                                    </Items>    
                                </telerik:ChartSeries>
                            </Series>
                            <PlotArea>
                                <XAxis AutoScale="false" AxisLabel-TextBlock-Text="Year" AxisLabel-Appearance-Position-Auto="true" AxisLabel-Appearance-Visible="true">
                                    <Items>
                                        <telerik:ChartAxisItem Value="2010"></telerik:ChartAxisItem>
                                        <telerik:ChartAxisItem Value="2011"></telerik:ChartAxisItem>
                                    </Items>
                                </XAxis>
                                <YAxis AutoScale="true" AxisLabel-TextBlock-Text="Amount" AxisLabel-Appearance-Position-Auto="true" AxisLabel-Appearance-Visible="true" Appearance-ValueFormat="Currency">
                                    <Appearance MinorGridLines-Visible="false" MajorGridLines-Visible="false">
                                        <LabelAppearance RotationAngle="45"></LabelAppearance>
                                        <TextAppearance></TextAppearance>
                                    </Appearance>
                                </YAxis>
                            </PlotArea>
                        </telerik:RadChart>
Back to Top