Products Downloads


French version


 

Declaration


NUM_BIN_4

SeriesNn

/* Number of series on the histogram

NUM_BIN_4

PointsNb

/* Number of points on the histogram

ALPHA(250)

ArrLabels(10)

/* Label array by values

ALPHA(250)

ArrLegends(10)

/* Legend array by line chart

NUM_BIN_4

SeriesId

/* Id of the series to display

NUM_E(15,4)

ArrXPoints(10)

/* Array of X point values

NUM_E(15,4)

ArrYPoints(10)

/* Array of Y point values

ALPHA(250)

ArrPtLabelVal(10)

/* Label value array for each point

NUM_E(15,4)

ArrErrors(10)

/* Error array


Program


*******************************************

* Graphical object Line Chart LCH_01

* A graphic list GRAPH_LST

* with 3 columns:

* - Name

(Legends) 


* - number 1

(Labels) 


* - number 2

(Labels) 


*******************************************

* Setting up titles

*

LCH_01:MAIN_TITLE = 'Line Chart Examples'

*******************************************

* Number of points, legends, labels

* Define series 1 to 2

* Definition of legends for each line chart

PointsNb = 0

read_lst GRAPH_LST:LIST

NbPoints = PointsNb + 1

ArrLegends(PointsNb) = ZZ_LEGEND

end_read_lst

* Definition of 2 labels (X axis)

ArrLabels(1) = COL_NUMBER_1:TEXT

ArrLabels(2) = COL_NUMBER_2:TEXT

* Number of series (number of line charts = number of lines in the list)

SeriesNb = &elt_nbr(GRAPH_LST:LIST)

* Graphic definition

call_method LCH_01 define_graphic SeriesNb PointsNb ArrLabels ArrLegends

***********************************************

* Line chart and value drawing

SeriesId = 0

read_lst GRAPH_LST:LIST

* 1 series by line in the list

SeriesId = SeriesId + 1

*

ArrYPoints(1) = ZZ_NUMBER_1

ArrXPoints(1) = 0

*

ArrYPoints(2) = ZZ_NUMBER_2

ArrXPoints(2) = 1

*

* Repeat for each series

CALL_METHOD LCH_01 define_data SeriesId ArrYPoints ArrXPoints ArrPtLabelVal ArrErrors

end_read_lst


Back


↑ Top of page

  • Aucune étiquette