This is a migrated thread and some comments may be shown as answers.

Totals by year bar chart?

1 Answer 65 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Digital Man
Top achievements
Rank 2
Digital Man asked on 21 Mar 2011, 05:56 PM
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.

1 Answer, 1 is accepted

Sort by
0
Digital Man
Top achievements
Rank 2
answered on 22 Mar 2011, 01:19 PM
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>
Tags
Chart (Obsolete)
Asked by
Digital Man
Top achievements
Rank 2
Answers by
Digital Man
Top achievements
Rank 2
Share this question
or