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

Drop Color from Data Table row

1 Answer 60 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 05 Nov 2009, 02:28 AM
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); 

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 09 Nov 2009, 08:43 AM
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.
Tags
Chart (Obsolete)
Asked by
Andrew
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or