Summary

This portlet displays a chart with data from a TIS Table. It allows to edit the data in the TIS Table, e.g., to change values, to add or delete rows, or to change the order of the rows by directly editing the chart. It communicates with the TIS Editor in the same fashion as does the Editable Grid Portlet

Example

Task

Actions

Create an editable data table

Prepare the initial table for the editable grid in a data node (init node) in TIS Editor and write it to a TIS Table with the operator TIS Board - Generate editable data table 5.0.

Enter a folder and a name for the TIS Table (can be a parameter) and check the option "Create only new table" if you do not want this operation to overwrite the table.

Set the Update option to "Manually" if "Create only new table" was left unchecked and you do not want the table to update automatically (hence overwrite changes from the Editable Grid). The table can still be updated manually (changes overwritten).

Read editable table first

Create an empty data node (read node) and add the operator TIS Board - Editable Grid 7.0-.
 

Enter the folder and name of the TIS Table created in Step 1.

Activate option "Display row ID".

Add friend operator for portlet in the same data node

TIS Board flag

Check the TIS Board connection of the read node.

Create in Portlet Designer Step 1

Create a Portlet, choose the TIS Editor project and the read node created previously, select Editable Grid portlet.

Create in Portlet Designer Step 2

Save portlet

Edit in Portlet Designer

See Description in Formatting and Working with Portlets and Further Elements for specific Portlets.

The result is something like this:

The chart itself can also be bar charts or line charts. By moving the mouse onto the data point (which is the top of the column of the column chart) the value of the data point can be changed. By selecting an area (with holding the Shift key) the data points can be set to zero or set to linear fields.
Note: Changed data is directly stored to the TIS Table.
Please note that you can navigate with tabs and cursor.

Save and close

Save the changes of this Portlet and close it in the Portlet Designer.

Settings

General Portlet properties see List of Portlet Properties.

EJSChart Settings

Name

Type

Controllable

Internal Name

Description

Available in Portlets

EJSChart Settings | Chart Title

string



Title of the chart

Editable EJS Chart (Portlet). EJS Chart (Portlet)

EJSChart Settings | Show caption

bool



If checked, title will be shown above the chart

Editable EJS Chart (Portlet), EJS Chart (Portlet)

EJSChart Settings | Show/hide legend

bool



Shows/hides legend from the chart

Editable EJS Chart (Portlet), EJS Chart (Portlet)

EJSChart Settings | Allow interactivity

bool



Defines whether the chart can be changed by the user using the mouse (zooming, moving, selecting, etc.)

Editable EJS Chart (Portlet), EJS Chart (Portlet)

EJSChart Settings | Interactivity Options | Allow zoom

bool



Defines whether the chart can be zoomed. This is automatically disabled if "Allow interactivity" is set to false.

Editable EJS Chart (Portlet), EJS Chart (Portlet)

EJSChart Settings | Interactivity Options | Allow mousewheel zoom

bool



Defines whether the chart can be zoomed via scroll wheel on mouse. It is possible to select the zoom axis. This is automatically disabled if "Allow interactivity" is set to false.

Editable EJS Chart (Portlet), EJS Chart (Portlet)

EJSChart Settings | Interactivity Options | Show hints

bool



Defines whether hints are shown when a point is hovered over or selected in the chart. This is automatically disabled if "Allow interactivity" is set to false. 

Editable EJS Chart (Portlet), EJS Chart (Portlet)

EJSChart Settings | Interactivity Options | Allow move

bool



Defines whether the chart can be moved once it has been zoomed in. This is automatically disabled if "Allow interactivity" is set to false. Use the right mouse button and drag within the chart to move around.

Editable EJS Chart (Portlet), EJS Chart (Portlet)

EJSChart Settings | Building message

string



Defines whether to display text while the chart is being assembled.

Editable EJS Chart (Portlet), EJS Chart (Portlet)

EJSChart Settings | Drawing message

string



Defines whether to display text while the chart is being drawn.

Editable EJS Chart (Portlet), EJS Chart (Portlet)

EJSChart Settings | Maximum zoom message

string



Defines the text to display when the maximum zoom has been reached.

Editable EJS Chart (Portlet), EJS Chart (Portlet)

EJSChart Settings | axis | Visible

bool



Shows or hides the axis, resizes the chart and redraws all visible charts.

Editable EJS Chart (Portlet), EJS Chart (Portlet)

EJSChart Settings | Manually set markings

bool



Enables or disables manual markings.

Editable EJS Chart (Portlet), EJS Chart (Portlet)

EJSChart Settings | Marking spacing

string



Describes the difference of the values between the markings. Values for time axes must be specified in milliseconds.

Editable EJS Chart (Portlet), EJS Chart (Portlet)

EJSChart Settings | X axis bottom/Y axis left | Caption

string



Specifies axis caption

Editable EJS Chart (Portlet), EJS Chart (Portlet)

EJSChart Settings | X axis bottom/Y axis left | Size

float



Defines the size of the horizontal axis or width of the vertical axis (in pixels) of the subdivision. To fully enable stacked subdivisions on the horizontal axis, set this property to a multiple of 20 (or to subdivision height), i.e., two levels = 40, three levels = 60.

Editable EJS Chart (Portlet), EJS Chart (Portlet)

EJSChart Settings | X axis bottom | Format

string



Formatting string for date/time values.

Editable EJS Chart (Portlet), EJS Chart (Portlet)

EJSChart Settings | Y axis left/right | Scale manually

bool



Enables or disables manual scaling for this axis.

Editable EJS Chart (Portlet), EJS Chart (Portlet)

EJSChart Settings | Y axis left/right | Scale manually | Minimum

float



Defines the minimum.

Editable EJS Chart (Portlet), EJS Chart (Portlet)

EJSChart Settings | Y axis left/right | Scale manually | Maximum

float



Defines the maximum.

Editable EJS Chart (Portlet), EJS Chart (Portlet)

EJSChart Settings | Y axis left/right | Number of markings

int



Describes the minimum number of tags on this axis. Manual tags will overwrite these settings.

Editable EJS Chart (Portlet), EJS Chart (Portlet)

EJSChart Settings | Y axis left | Decimal separator

char



Specifies the sign used as decimal separator

Editable EJS Chart (Portlet), EJS Chart (Portlet)

EJSChart Settings | Y axis left | Negative symbol

string



Formatting of negative numbers. Possible values are "-" and "()".

Editable EJS Chart (Portlet), EJS Chart (Portlet)

EJSChart Settings | Y axis left | 1000 separator

char



Defines the sign used as thousands separator.

Editable EJS Chart (Portlet), EJS Chart (Portlet)

EJSChart Settings | Y axis left | Forced decimals

int



Number of decimals to be displayed.

Editable EJS Chart (Portlet), EJS Chart (Portlet)

EJSChart Settings | Y axis left | Valiable decimals

int



Maximum number of decimals that are displayed. Values may be truncated. If undefined, values are not truncated.

Editable EJS Chart (Portlet), EJS Chart (Portlet)

EJSChart Settings | Y axis left | Symbol

string



Specifies symbol used to indicate currency.

Editable EJS Chart (Portlet), EJS Chart (Portlet)

EJSChart Settings | Y axis left | Position of icons




Valid options are "left" and "right".

Editable EJS Chart (Portlet), EJS Chart (Portlet)

Series Settings | Caption

string



Changes the series title and updates the legend (if applicable). Note: Active tooltips are not updated until they are re-opened.

Editable EJS Chart (Portlet), EJS Chart (Portlet)

Series Settings | Series type

string



Defines the type of series.

Editable EJS Chart (Portlet), EJS Chart (Portlet)

Series Settings | Line width

int



Defines the width of the line

Editable EJS Chart (Portlet), EJS Chart (Portlet)

Series Settings | Color

string



Defines the color of the selected observable (line, area, etc.)

Editable EJS Chart (Portlet), EJS Chart (Portlet)

Series Settings | Visible

bool



Defines whether the series is visible and can be drawn on the chart.

Editable EJS Chart (Portlet), EJS Chart (Portlet)

  • TIS Board - Editable EJSChart 1.0
  • Editable Grid (Portlet)