I am new to silverlight and telerik I have similar problem like "legend
not showing " . I have done most of the things from code behind as i am
not much comfortable with xaml. I have one base chart from which other
chart are inherited and in code sets there properties.
i also trying to show legend for series and my code is like this
PointSeries valueSeries= new PointSeries();
valueSeries.PointTemplate = App.Current.Resources["PointTemplate" + SeriesCounter] as DataTemplate;
valueSeries.ItemsSource = location.Parameter.Results;
valueSeries.CategoryBinding = new PropertyNameDataPointBinding("Time");
valueSeries.ValueBinding = new PropertyNameDataPointBinding("Val");
valueSeries.LegendSettings = new SeriesLegendSettings() { Title = "Value Series" };
chart.Series.Add(valueSeries);
but i am not getting the legend
please help me with code snipset to declare the actual legend and to bind its items to the chart.LegendItems collection:
not showing " . I have done most of the things from code behind as i am
not much comfortable with xaml. I have one base chart from which other
chart are inherited and in code sets there properties.
i also trying to show legend for series and my code is like this
PointSeries valueSeries= new PointSeries();
valueSeries.PointTemplate = App.Current.Resources["PointTemplate" + SeriesCounter] as DataTemplate;
valueSeries.ItemsSource = location.Parameter.Results;
valueSeries.CategoryBinding = new PropertyNameDataPointBinding("Time");
valueSeries.ValueBinding = new PropertyNameDataPointBinding("Val");
valueSeries.LegendSettings = new SeriesLegendSettings() { Title = "Value Series" };
chart.Series.Add(valueSeries);
but i am not getting the legend
please help me with code snipset to declare the actual legend and to bind its items to the chart.LegendItems collection: