Products Downloads


French version


 

Defines the histogram data for each series, with:

    • the number of the series concerned in NumSeries (the first series will be number 1).

    • the values of the points related to the series NumSeries, held in the array ArrPoints.

    • the labels associated with each point in the series NumSeries, held in the array ArrLabels.

    • the error values associated with each point in the series NumSeries, held in the array ArrErrors (these values are only taken into account if the Y_ERROR_BAR property is set to "_HST_DEFINED_ERROR").

This method must be called once for each series in the histogram.

 

Syntax

CALL_METHOD NameHistogramObject DEFINE_DATA NumSeries ArrPoints ArrLabels ArrLegends ArrErrors

Parameters

NumSeries (I)

NUM_BIN_4 type

ArrPoints (I)

NUM_E(15,4) type array

ArrLabels (I)

ALPHA(250) type array

ArrErrors (I)

NUM_E(15,4) type array

Conditions for use

None

 

The arrays ArrPoints, ArrLabels and ArrErrors must contain at least as many elements as there are points.

 

Syntax

CALL_METHOD NameHistogramObject DEFINE_DATA_COLORS SeriesNb ArrColors

Parameters

SeriesNb (I)

NUM_BIN_4 type

Number of series in the histogram.

ArrColors (I)

NUM_BIN_4 type array

Color array or the special value _HST_COLOR_RANDOM.

If this parameter is specified as _HST_COLOR_RANDOM, the object chooses colors for its constituent series itself.

_HST_SERIES_COL_BLACK

_HST_SERIES_COL_BLUE

_HST_SERIES_COL_GREEN

_HST_SERIES_COL_CYAN

_HST_SERIES_COL_RED

_HST_SERIES_COL_MAGENTA

_HST_SERIES_COL_BROWN

_HST_SERIES_COL_LIGHTGRAY

_HST_SERIES_COL_DARKGRAY

_HST_SERIES_COL_LIGHTBLUE

_HST_SERIES_COL_LIGHTGREEN

_HST_SERIES_COL_LIGHTCYAN

_HST_SERIES_COL_LIGHTRED

_HST_SERIES_COL_LIGHTMAGENTA

_HST_SERIES_COL_YELLOW

_HST_SERIES_COL_WHITE

 

_HST_SERIES_COL_PASTELRED

_HST_SERIES_COL_PASTELGREEN

_HST_SERIES_COL_PASTELBLUE

_HST_SERIES_COL_PASTELCYAN

_HST_SERIES_COL_PASTELMAGENTA

_HST_SERIES_COL_PASTELYELLOW

 

_HST_SERIES_COL_SHADE

 

The values _HST_SERIES_COL_PASTELRED, _HST_SERIES_COL_PASTELGREEN, _HST_SERIES_COL_PASTELBLUE, _HST_SERIES_COL_PASTELCYAN, _HST_SERIES_COL_PASTELMAGENTA and _HST_SERIES_COL_PASTELYELLOW can be superimposed between 1 and 15 times to produce a color gradient (with constant + 15 being the palest tone in the gradient).

The _HST_SERIES_COL_SHADE value can be superimposed on the constants _HST_SERIES_COL_BLUE to _HST_SERIES_COL_WHITE (see above) to add a black tint to the color.

 

Conditions for use

None

 

The array ArrColors must contain at least as many elements as there are slices.

 

Defines the histogram's general characteristics, with:

    • the number of series in the histogram in NbSeries.

    • the number of points in the histogram in NbPoints;

    • the values in the array ArrLabels, corresponding to the labels associated with the points with the same position in each series.

    • the values in the array ArrLegends, corresponding to the legends associated with each series.

Syntax

CALL_METHOD NameHistogramObject DEFINE_GRAPHIC NbSeries NbPoints ArrLabels ArrLegends

Parameters

NbSeries (I)

NUM_BIN_4 type

NbPoints (I)

NUM_BIN_4 type

ArrLabels (I)

ALPHA(250) type array

ArrLegends (I)

ALPHA(250) type array

Conditions for use

None

 

The array ArrLabels must contain at least as many elements as there are points.

The array ArrLegends must contain at least as many elements as there are series.

 

Example >>

 

Prints the histogram.

Syntax

CALL_METHOD NameHistogramObject PRINT_GRAPHIC PrinterName Mode

Parameters

PrinterName (I)

ALPHA(250) type

Name of the printer used to print the chart.

If this parameter is not specified, the computer's default printer is used.

Mode (I)

NUM_BIN_4 type

Print mode used to print the chart.

_HST_PRINT_PROPERTIES

Displays the printer selection box and provides access to the printer's properties.

_HST_PRINT_PORTRAIT

Prints in portrait mode.

_HST_PRINT_LANDSCAPE

Prints in landscape mode.

Conditions for use

None

 

Note: This method is not implemented by the Cloud generator.

 

 

 

 

↑ Top of page