I have a problem with a LineChart. Ich have a datatable with a datetime on the y-axis and decimals on the x-axis. If all my decimal values are 0 the chart throws a OverflowException beacuse it tries to paint a line from x1 = -2147483555 y1 = 100 to x2 = -2147483555 y2 = 41.
I have no idea why it does not simply paint a line along the x-axis. I am using Version v3.00.20033.
I'm having trouble reproducing this issue. Our line chart doesn't allow numeric values on the x axis, nor does it allow date time values on the y axis. Can you post a sample or a code snippet?
Hi!
First of all im sorry i flipped the axis. i have my dates on the x and the decimals on the y axis.
But now i will explain the problem further. I have a datatable with two columns. The first one is a datetime and the second one a decimal. If i have values in the decimal column all works perfect. But sometimes it can happen that all values in the second column are "0". If that's the case i get the OverflowException.
Here the Stacktrace:
at System.Drawing.Graphics.CheckErrorStatus(Int32 status) at System.Drawing.Graphics.DrawLine(Pen pen, Int32 x1, Int32 y1, Int32 x2, Int32 y2) at System.Drawing.Graphics.DrawLine(Pen pen, Point pt1, Point pt2) at Infragistics.UltraChart.Render.IFGGraphics2D.Draw(Line l) at Infragistics.UltraChart.Render.ChartRender.PaintPrimitive(Primitive p) at Infragistics.UltraChart.Render.ChartRender.RenderSceneGraph(SceneGraph scene, Graphics g) at Infragistics.UltraChart.Render.ChartRender.RenderChart(SceneGraph scene, Int32 sceneWidth, Int32 sceneHeight) at Infragistics.Win.UltraWinChart.UltraChart.UltraWinChart_Paint(Object sender, PaintEventArgs e)
It's a strange error. Maybe you can help.