From Documentation
Revision as of 03:46, 24 April 2015 by Hawk (talk | contribs) (→‎Overview)


Here we list all available library properties of Spreadsheet.

Chart's Font

For default font might not display your language properly, Spreadsheet allows you to specify fonts used in charts. There are 3 parts of a chart you can specify its font: title, legend, and x axis tick. Each part has a corresponding library property that you can specify its name, style, and size in zk.xml. Once you put the configuration, it affects to all charts of the whole application.

Example configuration in zk.xml

	<value>sansserif, italic, 30</value>
  • The above configuration sets title font to italic SansSerif with size 30.

Available property names:

Name Which font in chart


title font


legend font


x axis tick font

Value's format:

  • [NAME] : Those font names your system supports.
  • [STYLE] : plain, bold, italic
  • If you specify a incorrect format in the property value, the property will be ignored.

Color Picker

Users can set a library property, org.zkoss.zss.useColorPickerEx, in zk.xml to specify which color picker used in the whole application. This property only works under Spreadsheet EE. The default value is true, and Spreadsheet uses ColorPicker of EE. If it's false, Spreadsheet uses OSE's ColorPicker.

ColorPicker of EE:


ColorPicker of OSE (fewer color choices):


Example in zk.xml

  • The configuration above will make Spreadsheet use Color Picker of CE.

Preferred Theme

since 3.5.0

Currently, ZSS provides the following different themes: Default (built-in theme) and Classic from Github


Library property could be used to assign a preferred theme which is registered.

Example in zk.xml


Importing Formula Cache

 since 3.7

Set the property to true and ZSS will import formula cache of an Excel file and it can reduce the file loading time because ZSS doesn't need to re-evaluate formulas at loading.

    <value>true</value> <!-- turn the import cache on; default is false if not specified -->

Few points need to be noticed:

  1. If some functions not yet supported by ZK Spreadsheet are used in a formula, re-evaluation breaks the cached value even if precedent cells do not change.
  2. If some customized function only supported in ZK Spreadsheet are used in a formula, a cache is always #NAME! error. Users must enforce re-evaluation by calling Range.refresh(true, true, true).

All source code listed in this book is at Github.

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.