Chart Legend didnt show

Thread is closed for posting
2 posts, 0 answers
  1. naveen veda
    naveen veda avatar
    47 posts
    Member since:
    Jul 2012

    Posted 25 May 2009 Link to this post

    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");
            }
    }

     

  2. Ves
    Admin
    Ves avatar
    2926 posts

    Posted 27 May 2009 Link to this post

    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.
Back to Top