User (Legacy) Posted March 6, 2002 Report Posted March 6, 2002 I am running the Beta version of chartFx over the final release of VS.NET. Am writing a web app. Now heres what I do. I have a datatable in a dataset with 2 columns Time | Data. I can draw a chart with 1 series of Data over Time ( on X axis). Now I copy 2 columns with similar Time, Data values from another dataTable and add them to the previous datatable. So now I have four columns in my dataset. Time | Data | Time1 | Data1 02/2/02 | 34 | 02/03/02| 22 02/2/02 | 30 | 02/03/02| 32 -- -- -- -- -- -- -- -- as shown above. The time column is a datetime column. And i draw chart taking Time ie. from 12.00.00 Am - 12.00.00 Am next day. on X-Axis. Similar wuld b the case for Time1 column. Time axis would always take time for a day. The type of chart is Lines. And X-Axis is configured for Time while Y-Axis for Number. Now as per what I have seen in many posts. After I get these columns in a dataset if i follow the following rules i should b able to draw a chart with two series. ie. with 2 diff data lines with diff color. heres how i set the datatype. // code chart.DataStyle = chart.DataStyle | SoftwareFX.ChartFX.DataStyle.SerLegend; chart.DataSource = dataSet.Tables["Graph"]; chart.DataType[0] = SoftwareFX.ChartFX.DataType.XValue; chart.DataType[1] = SoftwareFX.ChartFX.DataType.Value; chart.DataType[2] = SoftwareFX.ChartFX.DataType.XValue; chart.DataType[3] = SoftwareFX.ChartFX.DataType.Value; chart.DataBind(); // code end Theres no error here , it goes through these statements and sets it accordingly. But after Binding it to the data it throws the following System.ArgumentException. which i have copied for your reference which is internal chart exception. Message Not a legal OleAut date. Error Type System.ArgumentException Error Source mscorlib Stack Trace at System.DateTime.DoubleDateToTicks(Double value) at System.DateTime.FromOADate(Double d) at SoftwareFX.ChartFX.Internet.Server.Z.;(Double n) at SoftwareFX.ChartFX.Internet.Server.9.FormatNumber(Double d) at SoftwareFX.ChartFX.Internet.Server.9.c(Q Q, IGraphicsEx R, Rectangle[] S, SetPropFlag& T, A U) at SoftwareFX.ChartFX.Internet.Server.AxisCoreCollection.w(Q , IGraphicsEx , Rectangle[] , A ) at SoftwareFX.ChartFX.Internet.Server.ChartCore. (Q Z, IGraphicsEx ^, Boolean _, Boolean `) at SoftwareFX.ChartFX.Internet.Server.ChartCore.7(Q ~, IGraphicsEx , Rectangle& , Int32& ) at SoftwareFX.ChartFX.Internet.Server.ChartCore.5(PaintBar z, IGraphicsEx {, Rectangle& |) at SoftwareFX.ChartFX.Internet.Server.Chart.R(Stream %, IOutputWriter ', OutputText (, OutputText ), OutputInfo& -) at SoftwareFX.ChartFX.Internet.Server.Chart.Y(OutputText @, OutputText A, Boolean at SoftwareFX.ChartFX.Internet.Server.Chart.Render(HtmlTextWriter output) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at ASP.CalendarTrend_aspx.__RenderPanel_chartAndGraph(HtmlTextWriter __output, Control parameterContainer) in http://localhost/RSEnergy/CalendarTrend.aspx:line 67 at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) at System.Web.UI.Control.Render(HtmlTextWriter writer) at System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at ASP.CalendarTrend_aspx.__Rendercalendartrend(HtmlTextWriter __output, Control parameterContainer) in http://localhost/RSEnergy/CalendarTrend.aspx:line 63 at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) at System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) at System.Web.UI.Control.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at System.Web.UI.Page.ProcessRequestMain() Target Site Int64 DoubleDateToTicks(Double) Here as seen the CalendarTrend.aspx line 67 is just an aspx page where in the chart control is definied. thats all....don't know why it shows that line as error line. A detailed help or suggestion would b helpful. as soon as possible to overcome this problem and how to go about drawing multiple series with time as x-axis if theres any example i can look for. Thanks Byg
Software FX Posted March 7, 2002 Report Posted March 7, 2002 Please post to the BETA newsgroup. -- FP Software FX, Inc.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.