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

Chart Legend didnt show

1 Answer 57 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:28 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:42 AM
Hi Naveen Veda,

This code does not really show any potential problem and it works fine on our end. I assume you do not have any additional code to hide the legend. If that is the case, can you please send us a small sample, reproducing the issue, so we can investigate it? Thanks.


All the best,
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