Menu

#50 Double.NaN in AreaChart

open
nobody
None
5
2005-08-01
2005-08-01
Anonymous
No

Putting Double.NaN into the data-array for an AreaChart
and attempting to render it with JPEGEncoder13.encode
causes an error (detailed error message follows).
Double.NaN works for other Chart-Types. I believe, the
area at a NaN x-value should be empty, it should end at
the previous x-value and start again at the next
x-value similar to the start at the first x-value.

Detailed error message:
Still inside at end of active edge list!
num curves = 1
num links = 1
y top = 156.85118103027344
y top of next curve = 288.6452331542969
Edge[Curve[1, (99.375, 1010.0535888671875), (99.375,
127.58332824707031), U], L, I]
<01.08.2005 17:22:27 CEST> <Error> <HTTP>
<[WebAppServletContext(790703,chartstest,/chartstest)]
Servlet failed with Exception
java.lang.InternalError: Odd number of new curves!
at
sun.awt.geom.AreaOp.resolveLinks(AreaOp.java:430)
at sun.awt.geom.AreaOp.pruneEdges(AreaOp.java:372)
at sun.awt.geom.AreaOp.calculate(AreaOp.java:139)
at java.awt.geom.Area.<init>(Area.java:116)
at
org.jCharts.axisChart.AreaChart.render(Unknown Source)
at
org.jCharts.axisChart.AxisChart.overlayCharts(Unknown
Source)
at
org.jCharts.axisChart.AxisChart.renderChart(Unknown Source)
at org.jCharts.Chart.render(Unknown Source)
at
org.jCharts.encoders.BinaryEncoderUtil.render(Unknown
Source)
at
org.jCharts.encoders.JPEGEncoder13.encode(Unknown Source)

Discussion


Log in to post a comment.

MongoDB Logo MongoDB