Jump to content
Software FX Community

bug


User (Legacy)
 Share

Recommended Posts

Hi Support,

Not sure what your bug reporting procedures are- but here's one:

A Radar chart with fillArea enabled will cause an overflow area if there is

more than one series (try three) and the data is all 0. This is probably

because it is trying to fill a 0-size polygon. The text of the crash is

below. Can you let me know if this is a known bug and what the timeline is

for fixing it.

Thanks,

Dan.

Overflow error.

at System.Drawing.Graphics.CheckErrorStatus(Int32 status)

at System.Drawing.Graphics.FillPolygon(Brush brush, Point[] points,

FillMode fillMode)

at System.Drawing.Graphics.FillPolygon(Brush brush, Point[] points)

at SoftwareFX.ChartFX.Base.GraphicsEx.FillPolygon(Brush brush, Point[] p)

at SoftwareFX.ChartFX.Internet.Server.1E.Polygon3D(IGraphicsEx gx,

Point3D[] p3D, Int32 nPoints, Brush brush, Pen pen)

at SoftwareFX.ChartFX.Internet.Server.GalleryObj.Radar.47(PaintMarkBase

0UI, Int32 0UJ, Int32 0UK, Int32 0UL, Int32 0UM, Int32 0UN, Int32 0UO, Int32

0UP, Int32 0UQ, Int32 0UR, Boolean 0US, Int32 0UT, Int32 0UU, Int32& 0UV,

Int32& 0UW)

at SoftwareFX.ChartFX.Internet.Server.GalleryObj.Radar.3D(Int32 0UE,

PaintMarkBase 0UF, Int32& 0UG, Int32& 0UH)

at SoftwareFX.ChartFX.Internet.Server.1L.JE(LabelList 1W8)

at SoftwareFX.ChartFX.Internet.Server.ChartCore.58(1L 0Y3, Rectangle& 0Y4,

Int32& 0Y5)

at SoftwareFX.ChartFX.Internet.Server.ChartCore.57(PaintBar 0Y0,

IGraphicsEx 0Y1, Rectangle& 0Y2)

at SoftwareFX.ChartFX.Internet.Server.ChartCore.73(PaintBar 10W,

IGraphicsEx 10X, Rectangle& 10Y)

at SoftwareFX.ChartFX.Internet.Server.Chart.7R(Stream 128, IOutputWriter

129, OutputText 12A, OutputText 12B, OutputInfo& 12C)

at SoftwareFX.ChartFX.Internet.Server.Chart.87(OutputText 136, OutputText

137, Boolean 138, Boolean 139, String 13A)

at SoftwareFX.ChartFX.Internet.Server.Chart.Render(HtmlTextWriter output)

Link to comment
Share on other sites

Actually - same problem occurs with polar charts - only instead of an

overflow error it causes the aspnet process to use 99 percent of CPU and

crashes the system - so a lot more serious.

dan.

"Dan Walls" <wallsy@hotmail.com> wrote in message

news:zXEvywmXEHA.2276@webserver3.softwarefx.com...

> Hi Support,

>

> Not sure what your bug reporting procedures are- but here's one:

>

> A Radar chart with fillArea enabled will cause an overflow area if there

is

> more than one series (try three) and the data is all 0. This is probably

> because it is trying to fill a 0-size polygon. The text of the crash is

> below. Can you let me know if this is a known bug and what the timeline is

> for fixing it.

>

> Thanks,

> Dan.

>

> Overflow error.

> at System.Drawing.Graphics.CheckErrorStatus(Int32 status)

> at System.Drawing.Graphics.FillPolygon(Brush brush, Point[] points,

> FillMode fillMode)

> at System.Drawing.Graphics.FillPolygon(Brush brush, Point[] points)

> at SoftwareFX.ChartFX.Base.GraphicsEx.FillPolygon(Brush brush, Point[]

p)

> at SoftwareFX.ChartFX.Internet.Server.1E.Polygon3D(IGraphicsEx gx,

> Point3D[] p3D, Int32 nPoints, Brush brush, Pen pen)

> at SoftwareFX.ChartFX.Internet.Server.GalleryObj.Radar.47(PaintMarkBase

> 0UI, Int32 0UJ, Int32 0UK, Int32 0UL, Int32 0UM, Int32 0UN, Int32 0UO,

Int32

> 0UP, Int32 0UQ, Int32 0UR, Boolean 0US, Int32 0UT, Int32 0UU, Int32& 0UV,

> Int32& 0UW)

> at SoftwareFX.ChartFX.Internet.Server.GalleryObj.Radar.3D(Int32 0UE,

> PaintMarkBase 0UF, Int32& 0UG, Int32& 0UH)

> at SoftwareFX.ChartFX.Internet.Server.1L.JE(LabelList 1W8)

> at SoftwareFX.ChartFX.Internet.Server.ChartCore.58(1L 0Y3, Rectangle&

0Y4,

> Int32& 0Y5)

> at SoftwareFX.ChartFX.Internet.Server.ChartCore.57(PaintBar 0Y0,

> IGraphicsEx 0Y1, Rectangle& 0Y2)

> at SoftwareFX.ChartFX.Internet.Server.ChartCore.73(PaintBar 10W,

> IGraphicsEx 10X, Rectangle& 10Y)

> at SoftwareFX.ChartFX.Internet.Server.Chart.7R(Stream 128, IOutputWriter

> 129, OutputText 12A, OutputText 12B, OutputInfo& 12C)

> at SoftwareFX.ChartFX.Internet.Server.Chart.87(OutputText 136,

OutputText

> 137, Boolean 138, Boolean 139, String 13A)

> at SoftwareFX.ChartFX.Internet.Server.Chart.Render(HtmlTextWriter

output)

>

>

>

Link to comment
Share on other sites

Are you sure you actually have a scale on this chart ?

One thing is plotting all the points at zero, that is supported, what is

not supported is not having a scale.

If you have an automatic Y-Axis Min and Max (AutoScale) and you are setting

all values to zero you will end up with a chart with no scale (Min = Max =

0). This chart simply can not be plotted.

I think you did find a bug, that is we should do as we do in other chart

types, and when there is no scale simply draw nothing. However, this is not

likely what you are looking for, what I think you are looking for is for

Chart FX to display some kind of "made-up" scale. To achieve this simply do,

right after setting your data:

if (chart.AxisY.Min == chart.AxisY.Max)

chart.AxisY.Max = <any number greater than Min that will make sense in

your context>;

--

FP

Software FX

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...