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

Chart Selection and Explode

1 Answer 78 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Chris Thierry
Top achievements
Rank 1
Chris Thierry asked on 11 Aug 2010, 04:45 PM
Hi, I have two question related to charts

1. In the demo first look when I click in a barline chart the item is select with a border, can I do the same with a single barline char? because it doesn't work, I'm using this:

SeriesMapping seriesMapping = new SeriesMapping();

 

seriesMapping.SeriesDefinition =

 

new BarSeriesDefinition();

 

seriesMapping.SeriesDefinition.InteractivitySettings.HoverScope =

 

 

 

InteractivityScope.Item;

 

seriesMapping.SeriesDefinition.InteractivitySettings.SelectionScope =

 

 

 

InteractivityScope.Item;

 

seriesMapping.SeriesDefinition.InteractivitySettings.SelectionMode =

 

 

 

ChartSelectionMode.Single;

 

seriesMapping.SeriesDefinition.ShowItemToolTips =

 

true;

 

seriesMapping.SeriesDefinition.ItemToolTipFormat =

 

 

 

"#VAL{#,###,###,##0$}"; //"#Y$";

 

 

 


seriesMapping.SeriesDefinition.Appearance.Fill =

 

new SolidColorBrush(Color.FromArgb(200, 248, 152, 29));

 

seriesMapping.SeriesDefinition.ItemLabelFormat =

 

 

 

"#VAL{#,###,###,##0$}"; //"#Y$";

 

ItemMapping

 

 

yMapping = new ItemMapping("quantity", DataPointMember.YValue);

 

 

 

 

 

ItemMapping catMapping = new ItemMapping("period", DataPointMember.XCategory);

 

seriesMapping.ItemMappings.Add(yMapping);

seriesMapping.ItemMappings.Add(catMapping);

chart_Months.DefaultView.ChartArea.ZoomScrollSettingsX.ScrollMode =

 

ScrollMode.ScrollAndZoom;

 

chart_Months.DefaultView.ChartArea.ZoomScrollSettingsX.MinZoomRange = _minZoomRange;

 

 

chart_Months.DefaultView.ChartArea.ZoomScrollSettingsX.PropertyChanged += ZoomScrollSettingsX_PropertyChanged;

chart_Months.SeriesMappings.Clear();

chart_Months.SeriesMappings.Add(seriesMapping);

chart_Months.ItemsSource = e.Result.ToList();


2. Can I make a pie chart with an item already exploded without doing click?

Thank you.

For my first question I realized when I'm using ZoomScrollSettingsX the selected item border is not working. Is there any way to identify the selectd item?

 

 

 

 

 

 

 

 

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 16 Aug 2010, 12:00 PM
Hi Chris,

Indeed we must admit that the selection interactivity did not work properly in the official Q2 2010 release and no selection border was visible. Our developers have addressed the erroneous behavior for the service pack that was released last week and we would suggest you to download the new version from your Client.Net account.

Note, however, that selection persistence is not supported over zoom / scroll actions at the moment i.e. if you select an item and then scroll the chart a bit, the selection will be lost.

As for your other question -- currently this is not supported but we are planning to extend the Interactivity API and possibly add some events for the next Q3 2010 release of the control.


Regards,
Freddie
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Chart
Asked by
Chris Thierry
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Share this question
or