chart_set_maximum

This function only used for Line and Bar chart type only.

Set the maximum of chart number by giving number.

Syntax

chart_set_maximum(chart, maximum)
Argument Description
chart The chart id to set to.
maximum The maximum .

Return: True

Description

By default, the maximum number of chart will be set to close the largest value. With this function you can set the maximum number of charts by yourself. This function doesn't work if you set the maximum value exceeds the largest value.

Example

chartBalanced = chart_create(chart_bar, 32, 16, 448, 256);
chart_set_maximum(chartBalanced, 100);

The above code will set the maximum number of the chart indexed in the variable "chartBalanced".

results matching ""

    No results matching ""