Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Add group labels to DataBoundSeries (Read 2180 times)
abhi dhotre
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 28
Joined: Jul 12th, 2017
Add group labels to DataBoundSeries
Aug 1st, 2017 at 5:58pm
Print Post  
Hi,
I'm trying to add group labels to DataBoundSeries, in the sample online it uses Series and not DataBoundSeries. I'm using a datatable to bind with chart which consists of three columns group field, X value field and Y value field. I'm not sure how should I show the group name field on the chart.
Thanks,
Abhi  Smiley
  
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: Add group labels to DataBoundSeries
Reply #1 - Aug 2nd, 2017 at 7:04am
Print Post  
Hi,

Try specifying XAxisLabel column name for only one of the series, like barChart.XAxisLabelsDataFields = new ObservableCollection<string> { "", "", "labels_col", "", ""  };

Or you could still follow the GroupLabels example - do not set YAxisLabelsDataFields for the main bar series; instead create a separate DataBoundSeries that binds to X labels column, and show it using AnnotationRenderer added to chart.Plot.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint