Hi,
When I set ShowItemLabels or ShowPointMarks to true I get AG_E_UNKNOWN_ERROR. If I set both to false the exception is not thrown and the line graph shows as expected.
Here is my code :
Code behind :
I am on version 2010.1.0412 SL4 RTW.
Can you replicate?
Regards,
James
When I set ShowItemLabels or ShowPointMarks to true I get AG_E_UNKNOWN_ERROR. If I set both to false the exception is not thrown and the line graph shows as expected.
Here is my code :
<telerikChart:RadChart x:Name="radChart"> |
<telerikChart:RadChart.SeriesMappings> |
<telerikCharting:SeriesMapping> |
<telerikCharting:SeriesMapping.SeriesDefinition> |
<telerikCharting:LineSeriesDefinition ShowItemLabels="True" /> |
</telerikCharting:SeriesMapping.SeriesDefinition> |
<telerikCharting:SeriesMapping.ItemMappings> |
<telerikCharting:ItemMapping FieldName="LastUpdate" DataPointMember="XValue" /> |
<telerikCharting:ItemMapping FieldName="Price" DataPointMember="YValue" /> |
</telerikCharting:SeriesMapping.ItemMappings> |
</telerikCharting:SeriesMapping> |
</telerikChart:RadChart.SeriesMappings> |
</telerikChart:RadChart> |
Code behind :
private List<Market> items; |
public MyChart() { |
InitializeComponent(); |
items = new List<Market>(); |
var p1 = new Market(); |
p1.Price = 1256.75; |
p1.LastUpdate = DateTime.Now; |
items.Add(p1); |
var p2 = new Market(); |
p2.Price = 1236.75; |
p2.LastUpdate = DateTime.Now.AddDays(1); |
items.Add(p2); |
var p4 = new Market(); |
p4.Price = 1236.75; |
p4.LastUpdate = DateTime.Now.AddDays(2); |
items.Add(p4); |
radChart.DefaultView.ChartArea.AxisX.MinValue = items.FirstOrDefault().LastUpdate.ToOADate(); |
radChart.DefaultView.ChartArea.AxisX.MaxValue = items.LastOrDefault().LastUpdate.ToOADate(); |
radChart.ItemsSource = items; |
} |
public class Market { |
public double Price { get; set; } |
public DateTime LastUpdate { get; set; } |
} |
I am on version 2010.1.0412 SL4 RTW.
Can you replicate?
Regards,
James