AmchartGantt
class AmchartGantt extends AmchartChart
Constants
SYSTEM_TEMPLATE_UI_FOLDER |
|
private MIN_HEIGHT |
|
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 | 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 |
Methods
Applies all set chart options to the chart before rendering
No description
Add a segment to a category
Enables the export functionality for the graph
Returns a reference to the chart definition passed to the constructor.
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
Create Chart object and apply default settings
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 Variable / Option for an array
Set chart colors, if you don't want the system colors
No description
Set the end date
No description
No description
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 the start date
Details
in
AmchartChart at line 47
__construct($chart_definition = null)
UIComponent constructor.
in
UIComponent at line 324
string
__toString()
No description
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
at line 56
add_category($category)
No description
in
AmchartChart at line 115
add_listener($method, string $event = 'init')
at line 26
add_segment(mixed $category, string $start_date, string $end_date, string $color = null, string $label = null, string $url = null, bool $treat_as_time = false, array $custom_data = [])
Add a segment to a category
at line 85
enable_export()
Enables the export functionality for the graph
in
UIComponent at line 185
mixed
get($var)
Get Variable / Option
in
AmchartChart at line 229
stdClass|bool
get_chart_definition()
Returns a reference to the chart definition passed to the constructor.
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.
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 106
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
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
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
in
AmchartChart at line 86
set_3d_depth(int $depth = 10)
Enable 3D and set the depth
in
AmchartChart at line 95
set_angle(int $angle = 30)
If 3D is enabled set the angle of the chart
in
AmchartChart 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
in
AmchartChart at line 202
set_balloon_text($string)
Set balloon text
in
AmchartChart at line 212
set_balloon_text_format($string)
Set balloon text
in
AmchartChart at line 139
set_colors(array $colors = array())
Set chart colors, if you don't want the system colors
at line 10
set_data($data)
No description
at line 76
set_end_date(bool|string $date = false)
Set the end date
at line 183
set_height(int $height)
No description
at line 94
set_initial_zoom(string $start_date, string $end_date)
No description
in
AmchartChart at line 221
set_label_text($string)
Set label text
in
AmchartChart at line 105
set_listener($method, string $event = 'init')
in
AmchartChart 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
in
AmchartChart at line 189
set_number_format($decimal_separator = ',', $thousands_separator = '.', $precision = -1)
Set number format for numeric values
in
AmchartChart 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)
in
AmchartChart at line 64
set_size(string $size = 'normal')
Set Size
at line 65
set_start_date(bool|string $date = false)
Set the start date
in
AmchartChart at line 124
set_theme(string $theme = 'xelos')
Set chart theme
in
AmchartChart at line 55
set_uid_prefix($prefix)
No description