## helma.Chart

    Object
       |
       +--helma.Chart

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.
Defined in Chart.js
Author: Tobi Schaefer

SUMMARY: Constructor | Properties | Methods | DETAIL: Constructor | Properties | Methods

Constructor Summary
`helma.Chart(<String> fpath, <String> prefix, <String> sheetName)` Creates a new instance of helma.Chart

Methods Summary
`void` | `render()` Renders the Excel spreadsheet as XHTML table.
`String` | `renderAsString()` Returns the spreadsheet as rendered XHTML table.
`<static> void` | `example(<String> file)` A simple example for using helma.Chart that renders the passed file as XHTML table to response.

Constructor Detail

### helma.Chart

    helma.Chart(<String> fpath, <String> prefix, <String> sheetName)

Creates a new instance of helma.Chart

Parameters:

`fpath` - The path to the spreadsheet file

`prefix` - An optional prefix to use for all stylesheet classes within the rendered table

`sheetName` - The name of the sheet within the spreadsheet file to render. If this argument is omitted, the first sheet is rendered.

Returns:

A newly created helma.Chart instance.

Author: Tobi Schaefer

Method Detail

### render

    void render()

Renders the Excel spreadsheet as XHTML table.

### renderAsString

    String renderAsString()

Returns the spreadsheet as rendered XHTML table.

Returns:

The rendered spreadsheet table

### example

    <static> void example(<String> file)

A simple example for using helma.Chart that renders the passed file as XHTML table to response.

Parameters:

`file` - The path to the Excel spreadsheet file

SUMMARY: Constructor | Properties | Methods | DETAIL: Constructor | Properties | Methods

Documentation generated by JSDoc on Thu Apr 5 01:59:00 2007