Missing chart elements after restoring chart from template
Posted: Thu Apr 09, 2009 4:12 pm
Hi,
I've noticed that if I restore my chart from session during postback using the following method (as demonstrated in the examples):
and
that some chart elements dont seem to get drawn again - in particular the arrow from the annotation to the callout (i.e. I have a number of custom annotations that are positioned above series points with a line going from the point to the annotation and although the text area gets restored the line doesn't) . Can you confirm whether this is correct?
Thanks,
Norman
I've noticed that if I restore my chart from session during postback using the following method (as demonstrated in the examples):
Code: Select all
Dim tmpChart As MemoryStream = New MemoryStream()
WebChart.Chart.Export.Template.Save(tmpChart)
Session.Add("tmpChart", tmpChart)
Code: Select all
Dim tmpChart As MemoryStream = New MemoryStream()
tmpChart = CType(Session("tmpChart"), MemoryStream)
tmpChart.Position = 0
WebChart.Chart.Import.Template.Load(tmpChart)
Thanks,
Norman