Jump to content
Software FX Community

leroy2611

Members
  • Posts

    1
  • Joined

  • Last visited

leroy2611's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi, I am getting the following exception when I am creating a graph when the items are from different months only: The graph is showing items in a bar and each item is located by it's date/time. The legend of each item is showing it's hour only. It is working fine for items from the same month but fails when there are items from different months. Can you please take a look and assist? Thanks. Exception: "The added or subtracted value results in an un-representable DateTime. Parameter name: months" Stack Trace: at System.DateTime.AddMonths(Int32 months) at SoftwareFX.ChartFX.17.KP(Double 27D, Double 27E, Boolean& 27F, Boolean& 27G, Double& 27H) at SoftwareFX.ChartFX.AxisBase.JP(1R 23O, Rectangle[] 23P, SetPropFlag& 23Q, 1C 23R, AxisSection& 23S) at SoftwareFX.ChartFX.AxisCollection.KA(1R 254, Rectangle[] 255, 1C 256) at SoftwareFX.ChartFX.ChartCore.EP(1R 1T1, Boolean 1T2, Boolean 1T3) at SoftwareFX.ChartFX.ChartCore.EO(1R 1SY, Rectangle& 1SZ, Int32& 1T0) at SoftwareFX.ChartFX.ChartCore.EN(PaintBar 1SV, IGraphicsEx 1SW, Rectangle& 1SX) at SoftwareFX.ChartFX.0X.OnPaint(PaintEventArgs e) at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs) at System.Windows.Forms.Control.WmPaint(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.SafeNativeMethods.UpdateWindow(HandleRef hWnd) at System.Windows.Forms.Control.Update() at System.Windows.Forms.Control.Refresh() Examples from the code: LicensedSoftwareFX.Chart62. Chart62 chartResults = new .... chartResults.IniValue[indx,rowNum] = locationInRow + minStartHour.TotalSeconds; ( locationInRow = (int)TimeSpan.TotalSeconds and minStartHour is an instance of TimeSpan ) interactionChart.chartResults.AxisY.Min = minStartHour; (minStartHour is TimeSpan.TotalSeconds value) DateTime startTime = (DateTime)row[iNTERACTION_START_TIME_COLUMN]; TimeSpan startTimeDelta = startTime.Subtract(minStartTime); interactionChart.chartResults.AxisY.Max = minStartHour + maxLocation + 3600; (maxLocation = Convert.ToInt32(startTimeDelta.TotalSeconds) chartResults.Width = 32767;
×
×
  • Create New...