Attribute | Mand. | Description | Default |
id | no | Identifier of the statistic. | |
template | no | CHART.template | |
controller | no | Reference of the controller that manages this chart (i.e. handles user demands and refresh content). | |
graphType | no | Types of available graphs.The following types of graphs are managed: STACK_BAR: Stacked bar chart BAR: Bar chart PIE: Pie chart SCATTER_PLOT: Point chart PLOT: Plot chart STACK_AREA: Stacked area chart By default, a STACK_BAR is selected. |
STACK_BAR |
xVal | no | Indicates the way the values of X should be considered: X_REAL: Real values. X_INTERVAL: Grouping the values of X by intervals By default, an X_REAL is selected. |
X_REAL |
yVal | no | Indicates the way the values of Y should be considered: Y_REAL: Real values. Y_SUM_REAL: Sum of the values of Y (only available for the numeric variables). Y_COUNT_INTERVAL: Grouping the values of Y by intervals, and counting each group. Y_COUNT_REAL: Counting by the value of Y. By default, a Y_REAL is selected. |
Y_REAL |
pieBy | no | Indicates if the pie should correspond to the variables to analyze or to the values of the 'according to' variable. By default, there is a pie per variable to analyze. | false |
title | no | Allows defining a title that will be displayed on the graphical window. | |
xTitle | no | Allows defining a title that will be displayed on the axis of the abscissa of the graphical window. By default, this is the name of the variable in X. |
|
yTitle | no | Allows to define a title that will be displayed on the axis of the ordinate of the graphical window. By default, this is the name of the variable in y, if there is only one. | |
xType | no | Allows to define the type of the X variable in a broad sense: text, number, date. CHARTNUMBER: Number values. CHARTTEXT: Strings. CHARTDATE: Dates. By default the type is CHARTTEXT (for example a choice is considered as a text). |
CHARTTEXT |
yType | no | Allows to define the type of the Y variables in a broad sense: text, number, date. If you want to select several variables to study them, they must be of the same type. CHARTNUMBER: Number values. CHARTTEXT: Strings. CHARTDATE: Dates. By default the type is CHARTTEXT (for example a choice is considered as a text). |
CHARTTEXT |
xDateType | no | Allows defining the format of the dates to display in X. It corresponds to the formats used for the input fields of date type. |
|
yDateType | no | Allows defining the format of the dates to display en Y. It corresponds to the formats used for the input fields of date type. |
|
xFormat | no | Format of the LyFieldInfo ion X. | |
yFormat | no | Format of the LyFieldInfo in Y. | |
xVerticalLabels | no | Allows displaying vertically the labels of abscissa axis. This is useful when the labels are too long and they could be not all displayed. |
false |
xGrid | no | Allows drawing a vertical grid corresponding to the graduations of the horizontal axis (only when the type of graph is not PIE). | true |
yGrid | no | Allows drawing a horizontal grid corresponding to the graduations of the vertical axis (only when the type of graph is not PIE). | true |
d3Effect | no | Allows drawing the graph with a 3D effect (only when the type of graph is PIE, BAR or STACK_BAR). | true |
showLegend | no | Allows to display the legend | true |
showTips | no | If this attribute is to true, all the tips indicating the values of all the points are displayed. Else, they are displayed only when the mouse cursor is moved over the points, if the viewer supports them (this is not the case for the HTML viewer) |
false |
ratios | no | Allows calculating percentages. By default, they are not calculated. |
false |
noXField | no | This attribute is set to true if there is no variable according to which the variable(s) to analyze are studied. | true |
displayLegendEmptyValues | no | Indicates if empty values must be displayed in the legend. | true |
<!ELEMENT CHART (COLUMN*, INTERVALS?, AXIS?, CONSTRAINT?, DATA*)> |
Element | Mand. | Mult. | Description |
COLUMN | no | yes | Vectors of pairs of values (x, y). There is one COLUMN element per variable to study. |
INTERVALS | no | no | Defines the intervals used to group together the values in X and in Y, as long as one of the xVal or yVal attributes of the CHART element corresponds to intervals. |
AXIS | no | no | Defines the intervals on which the axis will be displayed, if the type of graph that has been chosen is not pie. |
CONSTRAINT | no | no | Positioning constraint of the chart. |
DATA | no | yes | CHART.DATA |
<!-- Example of static graph where two numeric variables Y are studied according to a time variable X./--> <CHART id="chart1" graphType='PLOT' title="My title" xType='CHARTDATE' yType='CHARTNUMBER' xDateType="1" yVal='Y_REAL' xVal='X_REAL' yTitle= 'Title y axis' xTitle='Time'> <COLUMN label="1st variable y"> <CHART_VALUE xValue="19/09/2000 12:15:16" yValue="3"/> <CHART_VALUE xValue="20/09/2000 12:15:16" yValue="8"/> </COLUMN> <COLUMN label="2nd variable y"> <CHART_VALUE xValue="20/09/2000 13:26:16" yValue="1"/> <CHART_VALUE xValue="22/09/2000 18:05:11" yValue="2"/> <CHART_VALUE xValue="18/09/2000 12:15:17" yValue="5"/> </COLUMN> </CHART> |
![]() |