Mandatory and desirable properties

Among other properties such as name, datasource, and htmlObject, other chart properties are mandatory. The height is really important, because if you don't set the height of the chart, you will not fit the chart in the dashboard. The height should also be specified in pixels.

If you don't set the width of the component, or to be more precise, then the chart will grab the width of the element where it's being rendered it will grab the width of the HTML element with the name specified in the htmlObject property.

The seriesInRows, crosstabMode, and timeseries properties are optional but, depending on the kind of chart you are generating, you might want to specify them. The use of these properties becomes clear if ...

Get Learning Pentaho CTools now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.