Change chart style from any style to Histogram error
Posted: Thu Aug 14, 2008 8:26 am
Dear Sir,
When I try to change the web chart style from any kind of style to Histogram, i get error "Index was outside the bounds of the array",
you also can download the sample project from
http://goc-sp.com/tchart/webtchart.zip
Using 2005.net to open the folder and run default.aspx as startup page.
then press the button, you will get the error as below.
Tchart version = 2.0.3033.18431 and Error msg as below
[IndexOutOfRangeException: Index was outside the bounds of the array.]
Steema.TeeChart.Styles.Series.CalcXPos(Int32 index) +43
Steema.TeeChart.Styles.Histogram.CalcRectangle(Int32 valueIndex) +214
Steema.TeeChart.Styles.Histogram.DrawValue(Int32 valueIndex) +88
Steema.TeeChart.Styles.Histogram.GetBounds(Int32 index, PolygonStyle& p) +36
Steema.TeeChart.Styles.MapRegion.GetPolygons(Series s) +376
Steema.TeeChart.Styles.MapRegion..ctor(SeriesHotspot h) +219
Steema.TeeChart.Tools.SeriesHotspot.GetMap(MarksStyles style) +47
Steema.TeeChart.Tools.SeriesHotspot.GenerateMap() +27
Steema.TeeChart.Web.WebChart.CreatePictureFile(HtmlTextWriter writer) +2492
Steema.TeeChart.Web.WebChart.Render(HtmlTextWriter output) +30
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +74
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +291
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +49
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +234
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +53
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +98
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +43
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +336
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +74
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +291
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +49
System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +56
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +234
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +53
System.Web.UI.Control.Render(HtmlTextWriter writer) +31
System.Web.UI.Page.Render(HtmlTextWriter writer) +39
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +74
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +291
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +49
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5537
Eric[/url]
When I try to change the web chart style from any kind of style to Histogram, i get error "Index was outside the bounds of the array",
you also can download the sample project from
http://goc-sp.com/tchart/webtchart.zip
Using 2005.net to open the folder and run default.aspx as startup page.
then press the button, you will get the error as below.
Tchart version = 2.0.3033.18431 and Error msg as below
[IndexOutOfRangeException: Index was outside the bounds of the array.]
Steema.TeeChart.Styles.Series.CalcXPos(Int32 index) +43
Steema.TeeChart.Styles.Histogram.CalcRectangle(Int32 valueIndex) +214
Steema.TeeChart.Styles.Histogram.DrawValue(Int32 valueIndex) +88
Steema.TeeChart.Styles.Histogram.GetBounds(Int32 index, PolygonStyle& p) +36
Steema.TeeChart.Styles.MapRegion.GetPolygons(Series s) +376
Steema.TeeChart.Styles.MapRegion..ctor(SeriesHotspot h) +219
Steema.TeeChart.Tools.SeriesHotspot.GetMap(MarksStyles style) +47
Steema.TeeChart.Tools.SeriesHotspot.GenerateMap() +27
Steema.TeeChart.Web.WebChart.CreatePictureFile(HtmlTextWriter writer) +2492
Steema.TeeChart.Web.WebChart.Render(HtmlTextWriter output) +30
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +74
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +291
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +49
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +234
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +53
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +98
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +43
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +336
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +74
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +291
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +49
System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +56
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +234
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +53
System.Web.UI.Control.Render(HtmlTextWriter writer) +31
System.Web.UI.Page.Render(HtmlTextWriter writer) +39
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +74
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +291
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +49
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5537
Eric[/url]