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. |
- 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