how can I make a chart dynamic

1 posts, 0 answers
  1. Amlan
    Amlan avatar
    2 posts
    Member since:
    Sep 2007

    Posted 07 Sep 2007 Link to this post

    Hi

    I applied a telerik line chart.When I wanted to make it dynamic,I come accross an error message.

    The code for which it is showing this error::

    <radc:ChartSeries Name="Series 2" PointMark="None" LineWidth="3" Type="Line">
                                        <Items>
                                            <radc:ChartSeriesItem YValue="<%=y0 %>" XValue="<%=x0 %>"></radc:ChartSeriesItem>
                                            <radc:ChartSeriesItem YValue="<%=y1 %>" XValue="<%=x1 %>"></radc:ChartSeriesItem>
                                            <radc:ChartSeriesItem YValue="<%=y2 %>" XValue="<%=x2 %>"></radc:ChartSeriesItem>
                                            <radc:ChartSeriesItem YValue="<%=y3 %>" XValue="<%=x3 %>"></radc:ChartSeriesItem>
                                            <radc:ChartSeriesItem YValue="<%=y4 %>" XValue="<%=x4 %>"></radc:ChartSeriesItem>
                                        </Items>
                                        <Appearance MainColor="253, 226, 0" SecondColor="255, 156, 0" BorderColor="DimGray"></Appearance>
                                        <LabelAppearance TextFont="Arial, 8.25pt, style=Bold" Alignment="MiddleRight"></LabelAppearance>
                                    </radc:ChartSeries>

    The error message is ::

    Server Error in '/MustangClaims' Application.

    Overflow error.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.OverflowException: Overflow error.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [OverflowException: Overflow error.]
    System.Drawing.Graphics.CheckErrorStatus(Int32 status) +104
    System.Drawing.Graphics.DrawLines(Pen pen, Point[] points) +317
    Telerik.WebControls.Chart.DrawHLineSeries(ChartSeries series, Rectangle plotRect, Int32 lineType) +1034
    Telerik.WebControls.Chart.DrawHorizontalSeries(Rectangle chartRectangle, Rectangle plotRectangle, StringBuilder sbImageMap) +496
    Telerik.WebControls.Chart.DrawSeriesManager(Rectangle chartRectangle, Rectangle plotRectangle, StringBuilder sbImageMap) +415
    Telerik.WebControls.Chart.Draw(Int32 chartWidth, Int32 chartHeight, StringBuilder sbImageMap) +3139
    Telerik.WebControls.RadChart.RenderContents(HtmlTextWriter writer) +532
    System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +43
    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) +335
    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) +5534

    Please let me know the procedure to get rid off this error.

    Thanks and regards,

    Amlan

Back to Top