class UKnowvaGraphs

Library class to create graphs in uKnowva.

Methods

string
drawChart(string $title, string $data, string|array $options = array(), string|array $attributes = array(), boolean $load3d = false, string $export = true)

This is the main core function that creates the graphs using highcharts.js

returns
drawBarChart(string $title, array|string $data, string|array $options = array(), string|array $attributes = array(), boolean $load3d = false, boolean $export = true)

No description

gives
drawLineChart(string $title, array|string $data, string|array $options = array(), string|array $attributes = array(), boolean $load3d = false, boolean $export = true)

No description

returns
drawSplineChart(string $title, array|string $data, string|array $options = array(), string|array $attributes = array(), boolean $load3d = false, boolean $export = true)

No description

gives
drawColumnChart(string $title, array|string $data, string|array $options = array(), string|array $attributes = array(), boolean $load3d = false, boolean $export = true)

No description

gives
drawAreaChart(string $title, array|string $data, string|array $options = array(), string|array $attributes = array(), boolean $load3d = false, boolean $export = true)

No description

gives
drawPieChart(string $title, array|string $data, string|array $options = array(), string|array $attributes = array(), boolean $load3d = false, boolean $export = true)

No description

Details

at line 24
string drawChart(string $title, string $data, string|array $options = array(), string|array $attributes = array(), boolean $load3d = false, string $export = true)

This is the main core function that creates the graphs using highcharts.js

Parameters

string $title title of the chart
string $data this can be array or associative array or string which shall be plotted on the graphs
string|array $options options to pass if any, reference : http://api.highcharts.com/highcharts
string|array $attributes attributes in the chart,
boolean $load3d if this is true, this shall plot 3D graph
string $export to export the graph in other format , default = True

Return Value

string gives the graphs output in HTML format

at line 228
returns drawBarChart(string $title, array|string $data, string|array $options = array(), string|array $attributes = array(), boolean $load3d = false, boolean $export = true)

Parameters

string $title title of the bar charts
array|string $data data to be plot on the graph
string|array $options options to pass if any reference URL : http://api.highcharts.com/highcharts
string|array $attributes attributes to pass if any, eg :- class , id
boolean $load3d to load 3D or 2D graph, default = false
boolean $export to export the graph file in other format, default = true

Return Value

returns the HTML output of the Bar Chart

at line 257
gives drawLineChart(string $title, array|string $data, string|array $options = array(), string|array $attributes = array(), boolean $load3d = false, boolean $export = true)

Parameters

string $title title of the line chart
array|string $data data to be plot on the graph
string|array $options options to pass if any reference URL : http://api.highcharts.com/highcharts
string|array $attributes attributes to pass if any, eg :- class , id
boolean $load3d to load 3D or 2D graph, default = false
boolean $export to export the graph file in other format, default = true

Return Value

gives the line chart of the data in HTML format

at line 304
returns drawSplineChart(string $title, array|string $data, string|array $options = array(), string|array $attributes = array(), boolean $load3d = false, boolean $export = true)

Parameters

string $title title of the spline chart
array|string $data data to be plot on the graph
string|array $options options to pass if any reference URL : http://api.highcharts.com/highcharts
string|array $attributes attributes to pass if any, eg :- class , id
boolean $load3d to load 3D or 2D graph, default = false
boolean $export to export the graph file in other format, default = true

Return Value

returns the spline chart of the data in HTML format

at line 350
gives drawColumnChart(string $title, array|string $data, string|array $options = array(), string|array $attributes = array(), boolean $load3d = false, boolean $export = true)

Parameters

string $title title of the column chart
array|string $data data to be plot on the graph
string|array $options options to pass if any reference URL : http://api.highcharts.com/highcharts
string|array $attributes attributes to pass if any, eg :- class , id
boolean $load3d to load 3D or 2D graph, default = false
boolean $export to export the graph file in other format, default = false

Return Value

gives the column chart of the data in HTML format

at line 380
gives drawAreaChart(string $title, array|string $data, string|array $options = array(), string|array $attributes = array(), boolean $load3d = false, boolean $export = true)

Parameters

string $title title of the bar charts
array|string $data data to be plot on the graph
string|array $options options to pass if any reference URL : http://api.highcharts.com/highcharts
string|array $attributes attributes to pass if any, eg :- class , id
boolean $load3d to load 3D or 2D graph, default = false
boolean $export to export the graph file in other format, default = true

Return Value

gives the area chart of the data in HTML format

at line 409
gives drawPieChart(string $title, array|string $data, string|array $options = array(), string|array $attributes = array(), boolean $load3d = false, boolean $export = true)

Parameters

string $title title of the pie charts
array|string $data data to be plot on the graph
string|array $options options to pass if any reference URL : http://api.highcharts.com/highcharts
string|array $attributes attributes to pass if any, eg :- class , id
boolean $load3d to load 3D or 2D graph, default = false
boolean $export to export the graph file in other format, default = true

Return Value

gives the pie chart of the data in HTML format