AmchartChart
class AmchartChart extends UIComponent
Constants
SYSTEM_TEMPLATE_UI_FOLDER |
|
Properties
Link | $xf_link | from UIComponent | |
string | $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 | ||
protected | $_data | ||
protected | $_lib_path | ||
protected | $chart_options | ||
protected | $_processed | ||
protected | $_height | ||
protected | $uid_prefix | ||
protected | $unique_id | ||
$colors | |||
protected string | $selected_map | Name of the country or area which map is loaded. |
|
protected string | $quality | Quality of the map: Low|High |
Methods
UIComponent constructor.
No description
No description
No description
Applies all set chart options to the chart before rendering
Returns a reference to the chart definition passed to the constructor.
No description
Returns the unique dom ID for this chart.
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
No description
Declared in Classes
Render Chart
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
Enable 3D and set the depth
If 3D is enabled set the angle of the chart
Set chart animation time in seconds
Set Variable / Option for an array
Set balloon text
Set balloon text
Set chart colors, if you don't want the system colors
Set Chart height
Set label text
Set the map quality
sets marker_content to passed data -> restore original content with reset_marker_content()
Set number format for numeric values
Set percent format for numeric values
Used to inject params. Only allowed params will be used (see $allowed_params_filter)
Set Size
Set chart theme
No description
Details
at line 47
__construct($chart_definition = null)
UIComponent constructor.
in
UIComponent at line 324
string
__toString()
No description
at line 415
protected
_add_animation_time()
No description
at line 353
protected
_add_system_colors()
No description
at line 409
protected
_add_theme()
No description
at line 426
protected
_apply_chart_options()
Applies all set chart options to the chart before rendering
at line 115
add_listener($method, string $event = 'init')
in
UIComponent at line 185
mixed
get($var)
Get Variable / Option
at line 229
stdClass|bool
get_chart_definition()
Returns a reference to the chart definition passed to the constructor.
at line 243
get_js_block()
No description
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.
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
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
in
UIComponent at line 234
string|null
parse_template_cb_wrapper(mixed $matches)
No description
in
UIComponent at line 260
mixed|string
parse_xtag($xml_source)
No description
at line 236
process()
Declared in Classes
at line 289
render()
Render Chart
in
UIComponent at line 268
mixed
render_xtag_element()
No description
in
UIComponent at line 173
void
reset_marker_content()
restores original content of marker_content
in
UIComponent at line 106
void
set(mixed $var, mixed $value = false)
Set Variable / Option
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
at line 86
set_3d_depth(int $depth = 10)
Enable 3D and set the depth
at line 95
set_angle(int $angle = 30)
If 3D is enabled set the angle of the chart
at line 149
set_animation_time(int $time = 0)
Set chart animation time in seconds
in
UIComponent at line 122
void
set_array(mixed $member_array, mixed $vars)
Set Variable / Option for an array
at line 202
set_balloon_text($string)
Set balloon text
at line 212
set_balloon_text_format($string)
Set balloon text
at line 139
set_colors(array $colors = array())
Set chart colors, if you don't want the system colors
at line 170
set_height(int $height)
Set Chart height
at line 221
set_label_text($string)
Set label text
at line 105
set_listener($method, string $event = 'init')
at line 159
set_map_quality($quality = 'low')
Set the map 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()
in
UIComponent at line 90
set_mod(mixed $mod)
Set link to owning module
at line 189
set_number_format($decimal_separator = ',', $thousands_separator = '.', $precision = -1)
Set number format for numeric values
at line 177
set_percent_format($decimal_separator = ',', $thousands_separator = '.', $precision = -1)
Set percent format for numeric values
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)
at line 64
set_size(string $size = 'normal')
Set Size
at line 124
set_theme(string $theme = 'xelos')
Set chart theme
at line 55
set_uid_prefix($prefix)
No description