This question is locked. New answers and comments are not allowed.
Hi,
I use chart and I have problem of size.
My Bars take 2/3 size possible (see file)
Why ?
This is my code :
And for my chart :
Thanks
I use chart and I have problem of size.
My Bars take 2/3 size possible (see file)
Why ?
This is my code :
<
Grid.Resources
>
<
telerik:SeriesMappingCollection
x:Key
=
"VerticalMappings2"
>
<
telerik:SeriesMapping
CollectionIndex
=
"0"
LegendLabel
=
"inf. ou égale à 0 jours"
>
<
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:StackedBarSeriesDefinition
StackGroupName
=
"Stack1"
>
<
telerik:StackedBarSeriesDefinition.Appearance
>
<
telerik:SeriesAppearanceSettings
Foreground
=
"Black"
>
</
telerik:SeriesAppearanceSettings
>
</
telerik:StackedBarSeriesDefinition.Appearance
>
<
charting:StackedBarSeriesDefinition.LabelSettings
>
<
charting:BarLabelSettings
Distance
=
"25"
LabelDisplayMode
=
"Auto"
ShowConnectors
=
"False"
ShowZeroValueLabels
=
"False"
/>
</
charting:StackedBarSeriesDefinition.LabelSettings
>
</
telerik:StackedBarSeriesDefinition
>
</
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:ItemMapping
DataPointMember
=
"YValue"
/>
</
telerik:SeriesMapping
>
<
telerik:SeriesMapping
CollectionIndex
=
"1"
LegendLabel
=
"compris entre 0 et 2 jours"
>
<
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:StackedBarSeriesDefinition
StackGroupName
=
"Stack1"
>
<
telerik:StackedBarSeriesDefinition.Appearance
>
<
telerik:SeriesAppearanceSettings
Foreground
=
"Black"
>
</
telerik:SeriesAppearanceSettings
>
</
telerik:StackedBarSeriesDefinition.Appearance
>
<
charting:StackedBarSeriesDefinition.LabelSettings
>
<
charting:BarLabelSettings
Distance
=
"25"
LabelDisplayMode
=
"Auto"
ShowConnectors
=
"False"
ShowZeroValueLabels
=
"False"
/>
</
charting:StackedBarSeriesDefinition.LabelSettings
>
</
telerik:StackedBarSeriesDefinition
>
</
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:ItemMapping
DataPointMember
=
"YValue"
/>
</
telerik:SeriesMapping
>
<
telerik:SeriesMapping
CollectionIndex
=
"2"
LegendLabel
=
"compris entre 2 et 7 jours"
>
<
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:StackedBarSeriesDefinition
StackGroupName
=
"Stack1"
>
<
telerik:StackedBarSeriesDefinition.Appearance
>
<
telerik:SeriesAppearanceSettings
Foreground
=
"Black"
>
</
telerik:SeriesAppearanceSettings
>
</
telerik:StackedBarSeriesDefinition.Appearance
>
<
charting:StackedBarSeriesDefinition.LabelSettings
> <
charting:BarLabelSettings
Distance
=
"25"
LabelDisplayMode
=
"Auto"
ShowConnectors
=
"False"
ShowZeroValueLabels
=
"False"
/></
charting:StackedBarSeriesDefinition.LabelSettings
> </
telerik:StackedBarSeriesDefinition
>
</
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:ItemMapping
DataPointMember
=
"YValue"
/>
</
telerik:SeriesMapping
>
<
telerik:SeriesMapping
CollectionIndex
=
"3"
LegendLabel
=
"compris entre 7 et 14 jours"
>
<
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:StackedBarSeriesDefinition
StackGroupName
=
"Stack1"
>
<
telerik:StackedBarSeriesDefinition.Appearance
>
<
telerik:SeriesAppearanceSettings
Foreground
=
"Black"
>
</
telerik:SeriesAppearanceSettings
>
</
telerik:StackedBarSeriesDefinition.Appearance
>
<
charting:StackedBarSeriesDefinition.LabelSettings
> <
charting:BarLabelSettings
Distance
=
"25"
LabelDisplayMode
=
"Auto"
ShowConnectors
=
"False"
ShowZeroValueLabels
=
"False"
/></
charting:StackedBarSeriesDefinition.LabelSettings
> </
telerik:StackedBarSeriesDefinition
>
</
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:ItemMapping
DataPointMember
=
"YValue"
/>
</
telerik:SeriesMapping
>
<
telerik:SeriesMapping
CollectionIndex
=
"4"
LegendLabel
=
"compris entre 14 et 21 jours"
>
<
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:StackedBarSeriesDefinition
StackGroupName
=
"Stack1"
>
<
telerik:StackedBarSeriesDefinition.Appearance
>
<
telerik:SeriesAppearanceSettings
Foreground
=
"Black"
>
</
telerik:SeriesAppearanceSettings
>
</
telerik:StackedBarSeriesDefinition.Appearance
>
<
charting:StackedBarSeriesDefinition.LabelSettings
> <
charting:BarLabelSettings
Distance
=
"25"
LabelDisplayMode
=
"Auto"
ShowConnectors
=
"False"
ShowZeroValueLabels
=
"False"
/></
charting:StackedBarSeriesDefinition.LabelSettings
> </
telerik:StackedBarSeriesDefinition
>
</
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:ItemMapping
DataPointMember
=
"YValue"
/>
</
telerik:SeriesMapping
>
<
telerik:SeriesMapping
CollectionIndex
=
"5"
LegendLabel
=
"compris entre 21 et 28 jours"
>
<
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:StackedBarSeriesDefinition
StackGroupName
=
"Stack1"
>
<
telerik:StackedBarSeriesDefinition.Appearance
>
<
telerik:SeriesAppearanceSettings
Foreground
=
"Black"
>
</
telerik:SeriesAppearanceSettings
>
</
telerik:StackedBarSeriesDefinition.Appearance
>
<
charting:StackedBarSeriesDefinition.LabelSettings
> <
charting:BarLabelSettings
Distance
=
"25"
LabelDisplayMode
=
"Auto"
ShowConnectors
=
"False"
ShowZeroValueLabels
=
"False"
/></
charting:StackedBarSeriesDefinition.LabelSettings
> </
telerik:StackedBarSeriesDefinition
>
</
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:ItemMapping
DataPointMember
=
"YValue"
/>
</
telerik:SeriesMapping
>
<
telerik:SeriesMapping
CollectionIndex
=
"6"
LegendLabel
=
"sup. ou égale à 28 jours"
>
<
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:StackedBarSeriesDefinition
StackGroupName
=
"Stack1"
>
<
telerik:StackedBarSeriesDefinition.Appearance
>
<
telerik:SeriesAppearanceSettings
Foreground
=
"Black"
>
</
telerik:SeriesAppearanceSettings
>
</
telerik:StackedBarSeriesDefinition.Appearance
>
<
charting:StackedBarSeriesDefinition.LabelSettings
> <
charting:BarLabelSettings
Distance
=
"25"
LabelDisplayMode
=
"Auto"
ShowConnectors
=
"False"
ShowZeroValueLabels
=
"False"
/></
charting:StackedBarSeriesDefinition.LabelSettings
> </
telerik:StackedBarSeriesDefinition
>
</
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:ItemMapping
DataPointMember
=
"YValue"
/>
</
telerik:SeriesMapping
>
</
telerik:SeriesMappingCollection
>
<
telerik:SeriesMappingCollection
x:Key
=
"VerticalMappings"
>
<
telerik:SeriesMapping
CollectionIndex
=
"0"
LegendLabel
=
"inf. ou égale à 0 jours"
>
<
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:StackedBarSeriesDefinition
StackGroupName
=
"Stack1"
>
<
telerik:StackedBarSeriesDefinition.Appearance
>
<
telerik:SeriesAppearanceSettings
Foreground
=
"Black"
>
</
telerik:SeriesAppearanceSettings
>
</
telerik:StackedBarSeriesDefinition.Appearance
>
</
telerik:StackedBarSeriesDefinition
>
</
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:ItemMapping
DataPointMember
=
"YValue"
/>
</
telerik:SeriesMapping
>
<
telerik:SeriesMapping
CollectionIndex
=
"1"
LegendLabel
=
"compris entre 0 et 2 jours"
>
<
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:StackedBarSeriesDefinition
StackGroupName
=
"Stack1"
>
<
telerik:StackedBarSeriesDefinition.Appearance
>
<
telerik:SeriesAppearanceSettings
Foreground
=
"Black"
>
</
telerik:SeriesAppearanceSettings
>
</
telerik:StackedBarSeriesDefinition.Appearance
>
<
charting:StackedBarSeriesDefinition.LabelSettings
> <
charting:BarLabelSettings
Distance
=
"25"
LabelDisplayMode
=
"Auto"
ShowConnectors
=
"False"
ShowZeroValueLabels
=
"False"
/></
charting:StackedBarSeriesDefinition.LabelSettings
> </
telerik:StackedBarSeriesDefinition
>
</
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:ItemMapping
DataPointMember
=
"YValue"
/>
</
telerik:SeriesMapping
>
<
telerik:SeriesMapping
CollectionIndex
=
"2"
LegendLabel
=
"compris entre 2 et 7 jours"
>
<
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:StackedBarSeriesDefinition
StackGroupName
=
"Stack1"
>
<
telerik:StackedBarSeriesDefinition.Appearance
>
<
telerik:SeriesAppearanceSettings
Foreground
=
"Black"
>
</
telerik:SeriesAppearanceSettings
>
</
telerik:StackedBarSeriesDefinition.Appearance
>
<
charting:StackedBarSeriesDefinition.LabelSettings
> <
charting:BarLabelSettings
Distance
=
"25"
LabelDisplayMode
=
"Auto"
ShowConnectors
=
"False"
ShowZeroValueLabels
=
"False"
/></
charting:StackedBarSeriesDefinition.LabelSettings
> </
telerik:StackedBarSeriesDefinition
>
</
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:ItemMapping
DataPointMember
=
"YValue"
/>
</
telerik:SeriesMapping
>
<
telerik:SeriesMapping
CollectionIndex
=
"3"
LegendLabel
=
"compris entre 7 et 14 jours"
>
<
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:StackedBarSeriesDefinition
StackGroupName
=
"Stack1"
>
<
telerik:StackedBarSeriesDefinition.Appearance
>
<
telerik:SeriesAppearanceSettings
Foreground
=
"Black"
>
</
telerik:SeriesAppearanceSettings
>
</
telerik:StackedBarSeriesDefinition.Appearance
>
<
charting:StackedBarSeriesDefinition.LabelSettings
> <
charting:BarLabelSettings
Distance
=
"25"
LabelDisplayMode
=
"Auto"
ShowConnectors
=
"False"
ShowZeroValueLabels
=
"False"
/></
charting:StackedBarSeriesDefinition.LabelSettings
> </
telerik:StackedBarSeriesDefinition
>
</
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:ItemMapping
DataPointMember
=
"YValue"
/>
</
telerik:SeriesMapping
>
<
telerik:SeriesMapping
CollectionIndex
=
"4"
LegendLabel
=
"compris entre 14 et 21 jours"
>
<
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:StackedBarSeriesDefinition
StackGroupName
=
"Stack1"
>
<
telerik:StackedBarSeriesDefinition.Appearance
>
<
telerik:SeriesAppearanceSettings
Foreground
=
"Black"
>
</
telerik:SeriesAppearanceSettings
>
</
telerik:StackedBarSeriesDefinition.Appearance
>
<
charting:StackedBarSeriesDefinition.LabelSettings
> <
charting:BarLabelSettings
Distance
=
"25"
LabelDisplayMode
=
"Auto"
ShowConnectors
=
"False"
ShowZeroValueLabels
=
"False"
/></
charting:StackedBarSeriesDefinition.LabelSettings
> </
telerik:StackedBarSeriesDefinition
>
</
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:ItemMapping
DataPointMember
=
"YValue"
/>
</
telerik:SeriesMapping
>
<
telerik:SeriesMapping
CollectionIndex
=
"5"
LegendLabel
=
"compris entre 21 et 28 jours"
>
<
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:StackedBarSeriesDefinition
StackGroupName
=
"Stack1"
>
<
telerik:StackedBarSeriesDefinition.Appearance
>
<
telerik:SeriesAppearanceSettings
Foreground
=
"Black"
>
</
telerik:SeriesAppearanceSettings
>
</
telerik:StackedBarSeriesDefinition.Appearance
>
<
charting:StackedBarSeriesDefinition.LabelSettings
> <
charting:BarLabelSettings
Distance
=
"25"
LabelDisplayMode
=
"Auto"
ShowConnectors
=
"False"
ShowZeroValueLabels
=
"False"
/></
charting:StackedBarSeriesDefinition.LabelSettings
> </
telerik:StackedBarSeriesDefinition
>
</
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:ItemMapping
DataPointMember
=
"YValue"
/>
</
telerik:SeriesMapping
>
<
telerik:SeriesMapping
CollectionIndex
=
"6"
LegendLabel
=
"sup. ou égale à 28 jours"
>
<
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:StackedBarSeriesDefinition
StackGroupName
=
"Stack1"
>
<
telerik:StackedBarSeriesDefinition.Appearance
>
<
telerik:SeriesAppearanceSettings
Foreground
=
"Black"
>
</
telerik:SeriesAppearanceSettings
>
</
telerik:StackedBarSeriesDefinition.Appearance
>
<
charting:StackedBarSeriesDefinition.LabelSettings
> <
charting:BarLabelSettings
Distance
=
"25"
LabelDisplayMode
=
"Auto"
ShowConnectors
=
"False"
ShowZeroValueLabels
=
"False"
/></
charting:StackedBarSeriesDefinition.LabelSettings
> </
telerik:StackedBarSeriesDefinition
>
</
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:ItemMapping
DataPointMember
=
"YValue"
/>
</
telerik:SeriesMapping
>
</
telerik:SeriesMappingCollection
>
</
Grid.Resources
>
And for my chart :
<
telerik:RadChart
x:Name
=
"RadADVLancementBE"
Grid.Row
=
"0"
SeriesMappings
=
"{StaticResource VerticalMappings2}"
telerik:Theming.Theme
=
"Office_Blue"
VerticalAlignment
=
"Top"
HorizontalAlignment
=
"Left"
Width
=
"90"
>
<
telerik:RadChart.DefaultView
>
<
telerik:ChartDefaultView
>
<
telerik:ChartDefaultView.ChartLegend
>
<
telerik:ChartLegend
Visibility
=
"Collapsed"
/>
</
telerik:ChartDefaultView.ChartLegend
>
<
telerik:ChartDefaultView.ChartTitle
>
<
telerik:ChartTitle
Visibility
=
"Collapsed"
/>
</
telerik:ChartDefaultView.ChartTitle
>
</
telerik:ChartDefaultView
>
</
telerik:RadChart.DefaultView
>
</
telerik:RadChart
>
Thanks