Products Downloads


French version


 


A line chart lets you draw a plotted-line type graphic during the layout design and execution phases.


Related pages:

Palette iconLayout managerWindowsCloud

* DECLARATION

num_bin_4 linechart_seriesnb
num_bin_4 linechart_pointsnb
alpha(250) linechart_arrlabels(10)
alpha(250) linechart_arrlegends(10)
num_bin_4 linechart_seriesid
num_e(15,4) linechart_arrxpoints(10)
num_e(15,4) linechart_arrypoints(10)
alpha(250) linechart_tablabels(10)
num_e(15,4) linechart_arrerrors(10)

* INITIALIZATION

linechart:main_title = 'line chart examples'
linechart:right_title = 'label 1'
linechart:left_title = 'label 2'
linechart:bottom_title = 'label 3'

linechart_seriesnb = 2

call_method linechart define_graphic linechart_seriesnb 3 linechart_arrlabels linechart_arrlegends

linechart_arrxpoints(1) = 0
linechart_arrypoints(1) = 3
linechart_arrxpoints(2) = 1
linechart_arrypoints(2) = 6
linechart_arrxpoints(3) = 3
linechart_arrypoints(3) = 4

call_method linechart define_data 1 linechart_arrypoints linechart_arrxpoints linechart_tablabels linechart_arrerrors

linechart_arrxpoints(1) = 1
linechart_arrypoints(1) = 2
linechart_arrxpoints(2) = 1
linechart_arrypoints(2) = 6
linechart_arrxpoints(3) = 2
linechart_arrypoints(3) = 1

call_method linechart define_data 2 linechart_arrypoints linechart_arrxpoints linechart_tablabels linechart_arrerrors 

Line charts are made up of one or more series containing the same number of elements.

Each series is described by a legend (character string). A series is represented on a graphic by a succession of solid lines linking consecutive points.

Each point is formed by:

  • a (numerical) value on the Y-axis (the point's Y coordinate).

  • if required, a (character string) data label describing the value.

  • if required, a (numerical) error value associated with the value.

  • either an identical (character string) label for all points of the same position in each series.

  • or a (numerical) value on the X-axis, corresponding to the point's X coordinate.

The user defines the data for the graphic only when it is run. The data shown during the layout design phase is static and given merely by way of an example.


Note: This object is not supported by the Java generator.




↑ Top of page