Adding a Chart to a Page

The chart component uses emxChart.jsp to draw a chart in the page using the URL parameters passed to it. You can display a chart within a page, or from within a configurable table.

  1. To display a chart directly within a page, call emxChart.jsp with the appropriate URL parameters.

    For example:

    emxChart.jsp?program=emxCharacteristic:getCharacteristicObjects
    &table=ENGFurtherChemicalPhysicalCharacteristicList&header
    =emxEngineeringCentral.Common.Further_Chemical_Physical_Characteristic.Heading
    &type=type_FurtherChemicalPhysicalCharacteristic&chartType=PieChart&&XAxis=Name&YAxis=Value
    

    See URL Parameters for emxChart.jsp for the list of allowed URL parameters.

  2. To display a chart from an existing configurable table page, define at least one column in the chart as numeric.

    A column is numeric if one of the following conditions is satisfied:


    • You configure the column to show a numeric attribute type (attribute of type integer or real) values. If this numeric column has a setting format assigned to string, then this column is considered as non-numerical column.
    • You configure the column to show string values (by defining an attribute expression or any valid businessobject/relationship expression or a program), with the setting format = numeric.

    If the attribute displayed in a column is defined with a dimension, then the values are compared or grouped using the normalized values. The chart labels will show the normalized unit of measure.

    An icon appears in the table toolbar in view mode whenever a table has numeric columns. When clicked, it shows the Chart Options dialog where users select various options on any given table instance and then draw the chart based on the selections. For details on the Chart Options dialog, see Creating Charts.