Products Downloads


French version


 


A histogram can be used to draw a histogram type graphic.


Related pages:

Palette iconLayout managerWindowsCloud

* DECLARATION  

num_bin_4 SeriesNb
alpha(250) ArrLabels(10)
alpha(250) ArrLegends(10)
num_e(15,4) ArrPoints(10)
alpha(250) ArrLabels(10)
num_e(15,4) ArrErrors(10) 


* INITIALIZATION  

hst_01:main_title = 'histogram example'
ArrLegends = *blank

histo_PointBn = 0
SeriesNb = 2

call_method hst_01 DEFINE_GRAPHIC SeriesNb 3          ArrLabels ArrLegends
CAll_METHOD hst_01 DEFINE_GRAPHIC SeriesNb 3          ArrLabels       ArrLegends

ArrPoints(1) = 3
ArrLabels(1) = '3'
ArrPoints(2) = 5
ArrLabels(2) = '5'

call_method hst_01 DEFINE_DATA 1 ArrPoints ArrLabels ArrErrors

ArrPoints(1) = 2
ArrLabels(1) = '2'
ArrPoints(2) = 6
ArrLabels(2) = '6'

call_method hst_01 DEFINE_DATA 2 ArrPoints ArrLabels ArrErrors

Histograms are made up of one or more series containing the same number of elements (or points).

Each series is described by a legend (character string).

Each point is made up of:

  • a (numerical) value on the Y axis,

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

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

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

Each point is represented on the graphic by a bar. Bars in the same series will all be the same color.


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