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

Can i use the zoom functionality with more than one bar per timeperiod?

2 Answers 56 Views
Chart
This is a migrated thread and some comments may be shown as answers.
MichelVD
Top achievements
Rank 1
MichelVD asked on 26 Apr 2010, 02:04 PM
Hi,

i saw the zoom example and it works :)
But now i want to add another piece of data for the same period: i have multiple data samples (in one object, with a datetime propery period and some properties which contain the data) for each day, and i want to display two or three bars and also zoom.
But when i add another sample, i loose the zoom funcionality...
I'm showing the 'periode' (period) on the X-axis.


 

SeriesMapping seriesMapping = new SeriesMapping();

 

 

ItemMapping itemMapping = new ItemMapping("SALES1", DataPointMember.YValue );

 

seriesMapping.ItemMappings.Add(itemMapping);

itemMapping =

new ItemMapping("Periode", DataPointMember.XCategory );

 

seriesMapping.ItemMappings.Add(itemMapping);

RadChart1.SeriesMappings.Add(seriesMapping);

seriesMapping =

new SeriesMapping();

 

itemMapping =

new ItemMapping("SALES2", DataPointMember.YValue);

 

seriesMapping.ItemMappings.Add(itemMapping);

itemMapping =

new ItemMapping("Periode", DataPointMember.XCategory);

 

seriesMapping.ItemMappings.Add(itemMapping);

RadChart1.SeriesMappings.Add(seriesMapping);


Am i on the right track by inserting 2 seriesmappings objects or do i have to create 1 seriesmappings object and create all the itemmappings within that seriesmappings?

Regards,
Michel

2 Answers, 1 is accepted

Sort by
0
MichelVD
Top achievements
Rank 1
answered on 27 Apr 2010, 09:26 AM
Maybe the title isn't that clear: maybe this is better:
Can i use the zoom functionality with more than one dataitem in the chart?
0
Ves
Telerik team
answered on 29 Apr 2010, 09:50 AM
Hello MichelVD,

Unfortunately, at this moment it is not possible to use zoom/scroll in categorical mode (that is using XCategory) with more than one data series. Please, change DataPointMember.XCategory to DataPointMember.XValue in the ItemMappings. This will allow you to use zoom/scroll. Our developers are aware of this limitation and they will research the possibilities to fix it in the future versions of the control.

Best regards,
Ves
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
MichelVD
Top achievements
Rank 1
Answers by
MichelVD
Top achievements
Rank 1
Ves
Telerik team
Share this question
or