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

Chart zoomscroll settings bar: can it be customized?

7 Answers 43 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Sunny
Top achievements
Rank 1
Sunny asked on 07 Nov 2011, 06:54 PM
Chart zoomscroll settings bar: can it be customized? We like to utilize the zooming on X axis, and like to increase the size of the bar through style.
Anyone has any suggestion? where to obtain the source code? who's style shoule I mess with? DragZoomLayerControl?

7 Answers, 1 is accepted

Sort by
0
Sunny
Top achievements
Rank 1
answered on 08 Nov 2011, 05:07 PM
I got as close as the Style="{TemplateBinding AxisXStyle}" the in axis. but can't find out where hte AxixXStyle is. Also I found out that if the Axis to try to zoom/scroll is DateTime, it will not work, as  the zoom will try to convert DateTime into a double witch throw exception. So is it true that the zoomscrollsettings won't work on DateTime?
0
Sunny
Top achievements
Rank 1
answered on 10 Nov 2011, 06:40 PM
Nobody answer my question.
I found the solution on resize the zoomscroll bar though. I still have a questoin regarding the data that send to the chart.
As I mentioned last post the datetime has trouble to resize, I found out that it is not the datetime at all, it is the data that I pass in.

<

telerik:SeriesMapping.ItemMappings >  

    <telerik:ItemMapping DataPointMember="XValue" FieldName="TimeStamp" />  

    <telerik:ItemMapping DataPointMember="YValue" FieldName="myData.doubleValue" />

 </telerik:SeriesMapping.ItemMappings>

The data above will have problem to resize as it will do data re-sample at behind, where the operation directly on myData is not available as myData is a class. If I change my plot data structure to have directly properties called TimeStamp and doubleValue. then set them like:

<telerik:SeriesMapping.ItemMappings >

     <telerik:ItemMapping DataPointMember="XValue" FieldName="TimeStamp" />

     <telerik:ItemMapping DataPointMember="YValue" FieldName="doubleValue" />

 </telerik:SeriesMapping.ItemMappings>


then it works fine. So the FieldName can not set to be at sub-level like in the first code sample?
0
Sia
Telerik team
answered on 10 Nov 2011, 06:52 PM
Hi Sunny,

Please excuse us for the delay of our answer. Please expect my reply soon.


Best wishes,
Sia
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Sia
Telerik team
answered on 10 Nov 2011, 09:41 PM
Hi Sunny,

Can you please let us know which is the version of RadControls that you use in your application?

All the best,
Sia
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Sunny
Top achievements
Rank 1
answered on 11 Nov 2011, 05:37 AM
My version is 2011.2.920.35
I need to know before I change my data structure.
0
Sunny
Top achievements
Rank 1
answered on 11 Nov 2011, 05:44 AM
My version is: 2011.2.920.35 It should be fairly new as it is just purchased 3 months ago.
0
Sia
Telerik team
answered on 16 Nov 2011, 11:41 AM
Hello Sunny,

Please excuse us for the late reply. Attached you can find a sample project with all needed resources. You can reduce them according to the changes you will make.

All the best,
Sia
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Chart
Asked by
Sunny
Top achievements
Rank 1
Answers by
Sunny
Top achievements
Rank 1
Sia
Telerik team
Share this question
or