Drop Color from Data Table row

Thread is closed for posting
2 posts, 0 answers
  1. Andrew
    Andrew avatar
    24 posts
    Member since:
    Jun 2009

    Posted 04 Nov 2009 Link to this post

    I am using the code which follows to insert a summation row at the bottom of the Data Table which is the result of a triple stacked bar chart.  I set the visibility of the series to false so it does not display in the graph only in the DataTable which works fine.  My only problem is that there is an unused color label associated with this new row in the Data Table, I like the color labels with the other rows because they take the place of the legend, but this one I would like to drop, is this possible?  To drop just the color portion of a series label in a Data Table?

    ChartSeries totSer = new ChartSeries(); 
    totSer.Name = "Total Contacts"
    totSer.Visible = false
    for (int i=0; i< conRunning.Series[0].Items.Count; i++){ 
        totSer.Items.Add(new ChartSeriesItem(conRunning.Series[0].Items[i].YValue 
            + conRunning.Series[1].Items[i].YValue 
            + conRunning.Series[2].Items[i].YValue)); 
    conRunning.Series.Add(totSer); 
  2. Ves
    Admin
    Ves avatar
    2927 posts

    Posted 09 Nov 2009 Link to this post

    Hello Andrew,

    RadChart does not really allow direct modifications in the plot area data table. Still, you can set the series fill to transparent and hide the border and these changes will be reflected in the data table:

    totSer.Appearance.FillStyle.FillType = Telerik.Charting.Styles.FillType.Solid;
    totSer.Appearance.FillStyle.MainColor = Color.Transparent;
    totSer.Appearance.Border.Visible = false;

    Sincerely,
    Ves
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top