Hi,
i have a problem with SplineSeriesDefinitinion.
On my project i have a RadChart with different SeriesDefinition on the same Data. I have buond the seriesDefinition type with the model, therefore i can change the series definition at runtime (without use code behind but only model).
The series definition that i use are:
I attach code (xaml) and image (1.png, 2.png, 3.png) for example.
When the graph opened, all graph it's ok (view image).
If i select StackedBar100SeriesDefinition the axisY range changed, but when i return to SplineSeriesDefinition the graph is cut (like image problem.png).
This problem occurs and remain only if i select StackedBar100SeriesDefinition. For resolve the problem, software must be restarted.
Another problem with the SplineSeriesDefinition is that on the X-Axis the first label is cut (like problem.png image and 2.png image). Is there a way to resolve this issue?
Thanks in advance.
Francesco.
i have a problem with SplineSeriesDefinitinion.
On my project i have a RadChart with different SeriesDefinition on the same Data. I have buond the seriesDefinition type with the model, therefore i can change the series definition at runtime (without use code behind but only model).
The series definition that i use are:
- StackedBarSeriesDefinition
- StackedBar100SeriesDefinition
- BarSeriesDefinition
- SplineSeriesDefinition
I attach code (xaml) and image (1.png, 2.png, 3.png) for example.
<
telerik1:RadChart
x:Name
=
"PassFailChart"
BorderThickness
=
"0"
Padding
=
"0,10,0,0"
Background
=
"{x:Null}"
IsTabStop
=
"False"
Grid.Row
=
"1"
>
<
telerik1:RadChart.DefaultView
>
<
telerik1:ChartDefaultView
>
<
telerik1:ChartDefaultView.ChartLegend
>
<
telerik1:ChartLegend
x:Name
=
"chartLegend"
LegendItemMarkerShape
=
"Circle"
Background
=
"{x:Null}"
BorderBrush
=
"{x:Null}"
UseAutoGeneratedItems
=
"True"
/>
</
telerik1:ChartDefaultView.ChartLegend
>
<
telerik1:ChartDefaultView.ChartArea
>
<
telerik1:ChartArea
LegendName
=
"chartLegend"
>
<
telerik1:ChartArea.AxisY
>
<
telerik1:AxisY
StripLinesVisibility
=
"Hidden"
MinorTicksVisibility
=
"Hidden"
ExtendDirection
=
"Up"
/>
</
telerik1:ChartArea.AxisY
>
</
telerik1:ChartArea
>
</
telerik1:ChartDefaultView.ChartArea
>
</
telerik1:ChartDefaultView
>
</
telerik1:RadChart.DefaultView
>
<
telerik1:RadChart.AnimationSettings
>
<
telerik1:AnimationSettings
ItemDelay
=
"00:00:00"
DefaultSeriesDelay
=
"00:00:01"
/>
</
telerik1:RadChart.AnimationSettings
>
<
telerik1:RadChart.SeriesMappings
>
<
telerik1:SeriesMapping
LegendLabel
=
"{Binding ElementName=cbPass, Path=Content}"
ItemsSource
=
"{Binding Path=GraphRuntime[Pass], Mode=TwoWay}"
SeriesDefinition
=
"{Binding Path=PassDefinition, Mode=TwoWay}"
>
<
telerik1:SeriesMapping.ItemMappings
>
<
telerik1:ItemMapping
DataPointMember
=
"YValue"
FieldName
=
"Value"
/>
<
telerik1:ItemMapping
DataPointMember
=
"XCategory"
FieldName
=
"Label"
/>
</
telerik1:SeriesMapping.ItemMappings
>
</
telerik1:SeriesMapping
>
<
telerik1:SeriesMapping
LegendLabel
=
"{Binding ElementName=cbFail, Path=Content}"
ItemsSource
=
"{Binding Path=GraphRuntime[Fail], Mode=TwoWay}"
SeriesDefinition
=
"{Binding Path=FailDefinition, Mode=TwoWay}"
>
<
telerik1:SeriesMapping.ItemMappings
>
<
telerik1:ItemMapping
DataPointMember
=
"YValue"
FieldName
=
"Value"
/>
<
telerik1:ItemMapping
DataPointMember
=
"XCategory"
FieldName
=
"Label"
/>
</
telerik1:SeriesMapping.ItemMappings
>
</
telerik1:SeriesMapping
>
<
telerik1:SeriesMapping
LegendLabel
=
"{Binding ElementName=cbReconstitution, Path=Content}"
ItemsSource
=
"{Binding Path=GraphRuntime[Reconstitution], Mode=TwoWay}"
SeriesDefinition
=
"{Binding Path=ReconstitutionDefinition, Mode=TwoWay}"
>
<
telerik1:SeriesMapping.ItemMappings
>
<
telerik1:ItemMapping
DataPointMember
=
"YValue"
FieldName
=
"Value"
/>
<
telerik1:ItemMapping
DataPointMember
=
"XCategory"
FieldName
=
"Label"
/>
</
telerik1:SeriesMapping.ItemMappings
>
</
telerik1:SeriesMapping
>
</
telerik1:RadChart.SeriesMappings
>
</
telerik1:RadChart
>
When the graph opened, all graph it's ok (view image).
If i select StackedBar100SeriesDefinition the axisY range changed, but when i return to SplineSeriesDefinition the graph is cut (like image problem.png).
This problem occurs and remain only if i select StackedBar100SeriesDefinition. For resolve the problem, software must be restarted.
Another problem with the SplineSeriesDefinition is that on the X-Axis the first label is cut (like problem.png image and 2.png image). Is there a way to resolve this issue?
Thanks in advance.
Francesco.