class AmchartBar extends AmchartChart

Constants

SYSTEM_TEMPLATE_UI_FOLDER

Properties

$xf_link from  UIComponent
$link_id from  UIComponent
array $GPvars from  UIComponent
Controller $mod from  UIComponent
protected array $local_template_marker from  UIComponent
protected bool $_overwrite_param_array from  UIComponent
protected bool|array|ModelCollection $marker_content from  UIComponent
string $mod_object_manager from  UIComponent
protected bool $_orig_marker_content from  UIComponent
protected array $_allowed_params_filter from  UIComponent
string $unique_dom_id from  UIComponent
protected string $uid from  UIComponent
string read-only $_content

When used in template this property will contain the XML/HTML within the XUI Nodes

from  UIComponent
protected bool|stdClass $_chart from  AmchartChart
protected $_data from  AmchartChart
protected $_lib_path from  AmchartChart
protected $chart_options from  AmchartChart
protected $_processed from  AmchartChart
protected $_height from  AmchartChart
protected $uid_prefix from  AmchartChart
protected $unique_id from  AmchartChart
$colors from  AmchartChart
protected string $selected_map

Name of the country or area which map is loaded.

from  AmchartChart
protected string $quality

Quality of the map: Low|High

from  AmchartChart
protected $_graphs
protected $_format_category_as_date

Methods

__construct($chart_definition = null)

UIComponent constructor.

string
__toString()

No description

_add_animation_time()

No description

_add_system_colors()

No description

_add_theme()

No description

_apply_chart_options()

Applies all set chart options to the chart before rendering

fill_by_array(array $category_values = array(), $title = false)

Fill Chart with Assoc Array (Category => Value, Category => Value)

format_category_as_date()

Formats the category name into an local date

mixed
get($var)

Get Variable / Option

stdClass|bool
get_chart_definition()

Returns a reference to the chart definition passed to the constructor.

get_js_block()

No description

string
get_unique_dom_id()

Returns the unique dom ID for this chart.

Template|null
get_view(string|bool $section = false)

Return new template view If using within module xui the tpl file should be named [class_name].tpl e.g. xui_core_table.tpl within the module's template folder

init()

put your comment there.

string
parse_template(string $template_content, array|bool $marker_array = false)

No description

string|null
parse_template_cb_wrapper(mixed $matches)

No description

mixed|string
parse_xtag($xml_source)

No description

process()

Create Chart object and apply default settings

render()

Render Chart

mixed
render_xtag_element()

No description

void
reset_marker_content()

restores original content of marker_content

rotate()

Rotate the chart to horizontal

void
set(mixed $var, mixed $value = false)

Set Variable / Option

setDataDateFormat(string $format = 'YYYY-MM-DD HH:MM:SS')

Sets the data format of dates so that AmChart knows how to parse date strings https://www.amcharts.com/docs/v3/reference/amstockchart/#dataDateFormat_property

set_3d_depth(int $depth = 10)

Enable 3D and set the depth

set_angle(int $angle = 30)

If 3D is enabled set the angle of the chart

set_animation_time(int $time = 0)

Set chart animation time in seconds

void
set_array(mixed $member_array, mixed $vars)

Set Variable / Option for an array

set_ballontext($text = "[[title]]:[[value]]")

No description

set_balloon_text($string)

Set balloon text

set_balloon_text_format($string)

Set balloon text

set_colors(array $colors = array())

Set chart colors, if you don't want the system colors

set_height(int $height)

Set Chart height

set_label_text($string)

Set label text

set_map_quality($quality = 'low')

Set the map quality

void
set_marker_content(mixed $marker_content = false)

sets marker_content to passed data -> restore original content with reset_marker_content()

set_mod(mixed $mod)

Set link to owning module

set_number_format($decimal_separator = ',', $thousands_separator = '.', $precision = -1)

Set number format for numeric values

set_percent_format($decimal_separator = ',', $thousands_separator = '.', $precision = -1)

Set percent format for numeric values

void
set_render_params(mixed $input_params = array())

Used to inject params. Only allowed params will be used (see $allowed_params_filter)

set_size(string $size = 'normal')

Set Size

set_theme(string $theme = 'xelos')

Set chart theme

set_uid_prefix($prefix)

No description

Details

in AmchartChart at line 47
__construct($chart_definition = null)

UIComponent constructor.

Parameters

$chart_definition

in UIComponent at line 324
string __toString()

No description

Return Value

string

in AmchartChart at line 415
protected _add_animation_time()

No description

in AmchartChart at line 353
protected _add_system_colors()

No description

in AmchartChart at line 409
protected _add_theme()

No description

in AmchartChart at line 426
protected _apply_chart_options()

Applies all set chart options to the chart before rendering

in AmchartChart at line 115
add_listener($method, string $event = 'init')

Parameters

$method
string $event

Chart Events are: init, rendered, drawn, animationFinished, buildStarted, dataUpdated, clickGraphItem

at line 22
fill_by_array(array $category_values = array(), $title = false)

Fill Chart with Assoc Array (Category => Value, Category => Value)

Parameters

array $category_values
$title

at line 68
format_category_as_date()

Formats the category name into an local date

in UIComponent at line 185
mixed get($var)

Get Variable / Option

Parameters

$var

Return Value

mixed

in AmchartChart at line 229
stdClass|bool get_chart_definition()

Returns a reference to the chart definition passed to the constructor.

Return Value

stdClass|bool

in AmchartChart at line 243
get_js_block()

No description

in AmchartChart at line 278
string get_unique_dom_id()

Returns the unique dom ID for this chart.

Always use this method instead of $this->unique_id.

Return Value

string

in UIComponent at line 289
Template|null get_view(string|bool $section = false)

Return new template view If using within module xui the tpl file should be named [class_name].tpl e.g. xui_core_table.tpl within the module's template folder

Parameters

string|bool $section

Name

Return Value

Template|null

Exceptions

Exception

in UIComponent at line 72
init()

put your comment there.

..

in UIComponent at line 221
string parse_template(string $template_content, array|bool $marker_array = false)

No description

Parameters

string $template_content

HTML Template

array|bool $marker_array

Markers and Values

Return Value

string

Parsed HTML Content

in UIComponent at line 234
string|null parse_template_cb_wrapper(mixed $matches)

No description

Parameters

mixed $matches

Return Value

string|null

in UIComponent at line 260
mixed|string parse_xtag($xml_source)

No description

Parameters

$xml_source

Return Value

mixed|string

Exceptions

ContentException

at line 77
process()

Create Chart object and apply default settings

in AmchartChart at line 289
render()

Render Chart

in UIComponent at line 268
mixed render_xtag_element()

No description

Return Value

mixed

in UIComponent at line 173
void reset_marker_content()

restores original content of marker_content

Return Value

void

at line 60
rotate()

Rotate the chart to horizontal

in UIComponent at line 106
void set(mixed $var, mixed $value = false)

Set Variable / Option

Parameters

mixed $var

Name of Variable to Set (Alternative: Assoc-Array for multiple variables)

mixed $value

Value of Variable

Return Value

void

in AmchartChart at line 76
AmchartChart setDataDateFormat(string $format = 'YYYY-MM-DD HH:MM:SS')

Sets the data format of dates so that AmChart knows how to parse date strings https://www.amcharts.com/docs/v3/reference/amstockchart/#dataDateFormat_property

Parameters

string $format

date data format string

Return Value

AmchartChart

in AmchartChart at line 86
set_3d_depth(int $depth = 10)

Enable 3D and set the depth

Parameters

int $depth

Depth of the 3D effect. Recommended between 0 and 70

in AmchartChart at line 95
set_angle(int $angle = 30)

If 3D is enabled set the angle of the chart

Parameters

int $angle

Angle value. Recommended between 0 and 90

in AmchartChart at line 149
set_animation_time(int $time = 0)

Set chart animation time in seconds

Parameters

int $time

Seconds

in UIComponent at line 122
void set_array(mixed $member_array, mixed $vars)

Set Variable / Option for an array

Parameters

mixed $member_array

Name of Variable to Set (Alternative: Assoc-Array for multiple variables)

mixed $vars

Value of Variable

Return Value

void

at line 51
set_ballontext($text = "[[title]]:[[value]]")

No description

Parameters

$text

in AmchartChart at line 202
set_balloon_text($string)

Set balloon text

Parameters

$string

in AmchartChart at line 212
set_balloon_text_format($string)

Set balloon text

Parameters

$string

in AmchartChart at line 139
set_colors(array $colors = array())

Set chart colors, if you don't want the system colors

Parameters

array $colors

Hex values like ['#fee', '#04d6a1']

in AmchartChart at line 170
set_height(int $height)

Set Chart height

Parameters

int $height

Chart height in pixel

in AmchartChart at line 221
set_label_text($string)

Set label text

Parameters

$string

in AmchartChart at line 105
set_listener($method, string $event = 'init')

Parameters

$method
string $event

Chart Events are: init, rendered, drawn, animationFinished, buildStarted, dataUpdated

in AmchartChart at line 159
set_map_quality($quality = 'low')

Set the map quality

Parameters

$quality

in UIComponent at line 165
void set_marker_content(mixed $marker_content = false)

sets marker_content to passed data -> restore original content with reset_marker_content()

Parameters

mixed $marker_content

Return Value

void

in UIComponent at line 90
set_mod(mixed $mod)

Set link to owning module

Parameters

mixed $mod

in AmchartChart at line 189
set_number_format($decimal_separator = ',', $thousands_separator = '.', $precision = -1)

Set number format for numeric values

Parameters

$decimal_separator
$thousands_separator
$precision

in AmchartChart at line 177
set_percent_format($decimal_separator = ',', $thousands_separator = '.', $precision = -1)

Set percent format for numeric values

Parameters

$decimal_separator
$thousands_separator
$precision

in UIComponent at line 135
void set_render_params(mixed $input_params = array())

Used to inject params. Only allowed params will be used (see $allowed_params_filter)

Parameters

mixed $input_params

Return Value

void

in AmchartChart at line 64
set_size(string $size = 'normal')

Set Size

Parameters

string $size

Possible values: micro, small, normal, large

in AmchartChart at line 124
set_theme(string $theme = 'xelos')

Set chart theme

Parameters

string $theme

Possible values are 'xelos', 'default', 'light', 'dark', 'black', 'chalk'

in AmchartChart at line 55
set_uid_prefix($prefix)

No description

Parameters

$prefix