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

Chart Legend didnt show

1 Answer 48 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
naveen veda
Top achievements
Rank 1
naveen veda asked on 25 May 2009, 02:29 PM

hi,

i am using the following code, i didnt see legend in my screen.. i thing i have missed something... can u tell me the solution.

 <telerik:RadChart ID="RadChart1" DataSourceID="SqlDataSource2" runat="server"
                        Width="465px" Height="260px" DefaultType="Pie" OnItemDataBound="RadChart1_ItemDataBound"
                        AutoLayout="true" AutoTextWrap="true" CreateImageMap="false">
                        <ChartTitle>
                            <TextBlock Text="Amount spent">
                            </TextBlock>
                          </ChartTitle>
                        <Series>
                            <telerik:ChartSeries DataYColumn="spentMoney" Name="spentMoney" Type="Pie">
                                <Appearance LegendDisplayMode="ItemLabels">
                                </Appearance>
                            </telerik:ChartSeries>
                        </Series>
                        </telerik:RadChart>

in code behind

 

protected void RadChart1_ItemDataBound(object sender, Telerik.Charting.ChartItemDataBoundEventArgs e)
        {
            e.SeriesItem.Name = (string)DataBinder.Eval(e.DataItem, "pName");
        }
}

 

 

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 27 May 2009, 07:43 AM
Hi,

Please, check the other forum thread you have started.

Greetings,
Ves
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Chart (Obsolete)
Asked by
naveen veda
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or