Graphics Programs Reference
In-Depth Information
h e i rst would be to have the server i gure it out. In this scenario, the data being graphed is
being pulled from a database and the page generated by a template of some type. In that case,
you would just build into the template the means of calculating the various needed values,
possibly in their own separate style sheet.
h e second is to write some JavaScript to do the heavy lit ing. In this approach, the various
bar heights would not be included in the stylesheet along with the rest of the graph styles.
h en, once the page was loaded, the JS would loop through the table twice: once to collect all
the values and determine the maximum, and then a second time to dynamically assign the
percentage height values to their respective td elements.
Search WWH ::

Custom Search