Dear
I'm trying to do something but I can not do it, I explain
With this we plot a series group
structure ItemsSource = "{Binding} Data" is the Next
I'm trying to do something but I can not do it, I explain
With this we plot a series group
<
telerikCharting:RadChart
ItemsSource
=
"{Binding Data}"
Grid.Row
=
"1"
x:Name
=
"chart"
Margin
=
"10,0,20,10"
PaletteBrushesRepeat
=
"True"
>
<
telerikCharting:RadChart.SeriesMappings
>
<
chart:SeriesMapping
>
<
chart:SeriesMapping.SeriesDefinition
>
<
chart:LineSeriesDefinition
LegendDisplayMode
=
"SeriesLabel"
LegendItemLabelFormat
=
"#LEGENDLABEL"
>
</
chart:LineSeriesDefinition
>
</
chart:SeriesMapping.SeriesDefinition
>
<
chart:SeriesMapping.GroupingSettings
>
<
chart:GroupingSettings
ShouldCreateSeriesForLastGroup
=
"True"
>
<
chart:GroupingSettings.GroupDescriptors
>
<
chart:ChartGroupDescriptor
Member
=
"IdTipoTramite"
/>
</
chart:GroupingSettings.GroupDescriptors
>
</
chart:GroupingSettings
>
</
chart:SeriesMapping.GroupingSettings
>
<
chart:SeriesMapping.ItemMappings
>
<
chart:ItemMapping
DataPointMember
=
"XValue"
FieldName
=
"NumeroPeriodo"
></
chart:ItemMapping
>
<
chart:ItemMapping
DataPointMember
=
"YValue"
FieldName
=
"CountTramites"
></
chart:ItemMapping
>
<
chart:ItemMapping
DataPointMember
=
"LegendLabel"
FieldName
=
"NombreTipoTramite"
></
chart:ItemMapping
>
<
chart:ItemMapping
DataPointMember
=
"LegendLabel"
FieldName
=
"IdTipoTramite"
></
chart:ItemMapping
>
</
chart:SeriesMapping.ItemMappings
>
</
chart:SeriesMapping
>
</
telerikCharting:RadChart.SeriesMappings
>
structure ItemsSource = "{Binding} Data" is the Next
public
class
DataTramiteInicio
{
int
IdTipoTramite {
get
;
set
; }
int
NumeroPeriodo {
get
;
set
; }
long
CountTramites {
get
;
set
; }
string
NombreTipoTramite {
get
;
set
; }
string
DescripcionPeriodo {
get
;
set
; }
DateTime FinPeriodo {
get
;
set
; }
DateTime InicioPeriodo {
get
;
set
; }
string
CodigoTipoTramite {
get
;
set
; }
}
What I want to do is customize the legend, but as I do?.
To illustrate I group them by IdTipoTramite, which is good, because it is identified that a single value, I can not by another field
Legend currently shown are the values ​​of IdTipoTramite but I want to show NombreTipoTramite
Please how I can accomplish this, I suspect it is with LegendItemLabelFormat
I attached some graphics for greater understanding
thanks