Class: Chart

helma.Chart(fpath, prefix, sheetName)

Instances of this class are capable of reading Excel spreadsheets and rendering them as XHTML table. Internally helma.Chart uses the Java Excel API by Andy Khan.

Constructor

new Chart(fpath, prefix, sheetName)

Creates a new instance of helma.Chart
Parameters:
Name Type Description
fpath String The path to the spreadsheet file
prefix String An optional prefix to use for all stylesheet classes within the rendered table
sheetName String The name of the sheet within the spreadsheet file to render. If this argument is omitted, the first sheet is rendered.
Author:
  • Tobi Schaefer
Source:
Returns:
A newly created helma.Chart instance.

Methods

(static) example(file)

A simple example for using helma.Chart that renders the passed file as XHTML table to response.
Parameters:
Name Type Description
file String The path to the Excel spreadsheet file
Source:

render()

Renders the Excel spreadsheet as XHTML table.
Source:

renderAsString()

Returns the spreadsheet as rendered XHTML table.
Source:
Returns:
The rendered spreadsheet table