This question is locked. New answers and comments are not allowed.
Hello,
I have a scenario where I'm trying to implement dynamic data loading for a RadChart instance. Essentially, I have a set of trend series where each series has a set of records between a known date and the current date. By calculating the minimum start date for each series, I can calculate the MinValue/MaxValue properties for AxisX.
I've also handled the PropertyChanged event on the Zoom settings for the x axis, and am loading the additionally needed data dynamically (pumping it through a custom ObservableCollection instance), and that seems to work well.
However, even though I know the range for the values, I'm having trouble setting initial zoom settings for the x axis. Even though the trend series has data for the last year (for example), I only want the graph to initially show the last 5 days (for example), and only load that data. I'm setting up bindings in my ViewModel for the ZoomScrollSettingsX object, but it does not seem to have any effect on the graph. (The graph shows the entire range, with only a certain portion of it loaded).
Hopefully that makes it obvious what I'm trying to do, and thank you for any help
I have a scenario where I'm trying to implement dynamic data loading for a RadChart instance. Essentially, I have a set of trend series where each series has a set of records between a known date and the current date. By calculating the minimum start date for each series, I can calculate the MinValue/MaxValue properties for AxisX.
I've also handled the PropertyChanged event on the Zoom settings for the x axis, and am loading the additionally needed data dynamically (pumping it through a custom ObservableCollection instance), and that seems to work well.
However, even though I know the range for the values, I'm having trouble setting initial zoom settings for the x axis. Even though the trend series has data for the last year (for example), I only want the graph to initially show the last 5 days (for example), and only load that data. I'm setting up bindings in my ViewModel for the ZoomScrollSettingsX object, but it does not seem to have any effect on the graph. (The graph shows the entire range, with only a certain portion of it loaded).
<
telerik:RadChart
x:Name
=
"RadChart1"
SeriesMappings
=
"{Binding Mappings}"
ItemsSource
=
"{Binding Data}"
>
<
telerik:RadChart.DefaultView
>
<
telerik:ChartDefaultView
>
<
telerik:ChartDefaultView.ChartArea
>
<
telerik:ChartArea
>
<
telerik:ChartArea.AxisX
>
<
telerik:AxisX
AutoRange
=
"False"
MinValue
=
"{Binding MinValue}"
MaxValue
=
"{Binding MaxValue}"
IsDateTime
=
"True"
StepLabelLevelCount
=
"2"
LabelStep
=
"4"
/>
</
telerik:ChartArea.AxisX
>
<
telerik:ChartArea.ZoomScrollSettingsX
>
<
telerik:ZoomScrollSettings
RangeStart
=
"{Binding RangeStart}"
RangeEnd
=
"{Binding RangeEnd}"
ScrollMode
=
"ScrollAndZoom"
/>
</
telerik:ChartArea.ZoomScrollSettingsX
>
</
telerik:ChartArea
>
</
telerik:ChartDefaultView.ChartArea
>
</
telerik:ChartDefaultView
>
</
telerik:RadChart.DefaultView
>
</
telerik:RadChart
>
Hopefully that makes it obvious what I'm trying to do, and thank you for any help