HyperCard 2.0v2 Graph Maker: Fix for Business Chart Error (7/92)

In HyperCard 2.0v2, the Fever charting section of the Graph Maker stack
contains an oversight. A chart that contains values greater than 1, and
contains no value greater than 2, goes careening wildly off the chart.

The fix is simple: in the background script there is a function called
getMaxValue. Change it to add 1 to the value returned as the highest value
being charted.

function getMaxValue dataList
-- returns the number with the highest value
sort dataList descending numeric
return line 1 of dataList + 1
end getMaxValue

This has been fixed in HyperCard 2.1

This article is adapted from the Claris Tech Info database.

Support Information Services
Published Date: Feb 19, 2012