FormatChartData
FormatChartData PHP Methods
addOtherArr(array $otherArr, array $totalsArr) v5
Add a new report data array
PARAMETERS:
$otherArr = array, Report data array values
$totalsArr = array, List of stats total amount to be applied to the new other array
RETURN VALUE:
Array = new report data array checkColumnCount(array $titlesArr, string $type = "barchart") v5
Checks if the chart has valid number of columns. Throws an error if the chart is not valid
PARAMETERS:
$titlesArr = array, Chart titles as an array
$type = string, Chart type
RETURN VALUE:
void fixTitlesArr(string $reportTypeName, array $titlesArr) v5
Fix report titles array
PARAMETERS:
$reportTypeName = string, Report type
$titlesArr = array, Report titles as an array
RETURN VALUE:
array = report titles array after fixing getChartJS(string $dataChartStats2, string $type = "barchart") v5
Gets Javascript code for the data chart
PARAMETERS:
$dataChartStats2 = string, Data chart content
$type = string, Chart type
RETURN VALUE:
string = Javascript code for the data chart getChartSeriesJS() v5
Gets charts series javascript code
PARAMETERS:
NONE
RETURN VALUE:
string = charts series javascript code getColumnComma(string $value, int &$count) v5
Gets chart column contents as comma separated values
PARAMETERS:
$value = string, Column value
$count = int, Column countr
RETURN VALUE:
string = chart column contents as comma separated values getColumnCount() v5
Gets the total number of columns in the chart data report
PARAMETERS:
NONE
RETURN VALUE:
int = total number of columns in the chart data report getCountryAddData(string $type, string $title, $total) v5
Gets country stats data
PARAMETERS:
$type = string, Map type (for countries = "country")
$title = string, Country name 2 letters code
$total = Stats total amount
RETURN VALUE:
string = country stats data as HTML getCountryTitle(string $country) v5
Gets country title from 2 letters code
PARAMETERS:
$country = string, Country name 2 letters code
RETURN VALUE:
string = country title from 2 letters code getOtherArr() v5
Gets other data details as an array
PARAMETERS:
NONE
RETURN VALUE:
Array = other data details as an array getReport(string $reportTypeName, array $titlesArr, $chartUniqueID = 1, string $type = "barchart") v5
Gets a report for chart data
PARAMETERS:
$reportTypeName = string, Report type name
$titlesArr = array, Chart data titles as an array
$chartUniqueID = int, Chart unique ID
$type = string, Chart type
RETURN VALUE:
string = report for chart data getReportChartData() v5
Get the report's chart data
PARAMETERS:
NONE
RETURN VALUE:
string = the report's chart data getReportChartDataBody(array $totalsArr, string $title) v5
Gets HTML of report chart data
PARAMETERS:
$totalsArr = array, Data total as an array
$title = string, Data title
RETURN VALUE:
string = HTML of report chart data getReportChartDataTitle(string $title) v5
Gets report chart data for a title
PARAMETERS:
$title = string, Report chart title
RETURN VALUE:
string = report chart data for a title getReportChartTitles(array $titlesArr) v5
Gets report chart titles
PARAMETERS:
$titlesArr = array, list of chart titles
RETURN VALUE:
string = report chart titles getReportDayTitleChartData() v5
Gets daily report chart data
PARAMETERS:
NONE
RETURN VALUE:
string = daily report chart data getTotalsArrTotal(array $totalsArr, string $append) v5
Gets stats total value. like total members/ total contacts)
PARAMETERS:
$totalsArr = array, List of total values as an array
$append = string, Array append value
RETURN VALUE:
int = stats total value. like total members/ total contacts) isTimeline() v5
Checks if the report is a timeline
PARAMETERS:
NONE
RETURN VALUE:
bool = True if the report type is timeline, false otherwise setLocation(\WMT\Map\Location $location) v5
Set report location
PARAMETERS:
$location = object
RETURN VALUE:
void showContactsTotal() v5
Checks if report stats allow showing number of total contacts
PARAMETERS:
NONE
RETURN VALUE:
bool = True if the report settings allow showing contact total, false otherwise showMembersTotal() v5
Checks if report stats allow showing number of total members
PARAMETERS:
NONE
RETURN VALUE:
bool = True if the report settings allow showing members total, false otherwise __construct(Settings $reportSettings, Data $data, array $jsArr) v5
Initialize abstract format chart
PARAMETERS:
$jsArr = array, Javascript Array
RETURN VALUE:
voidFormatChartData PHP Variables
🔎︎ %l4610%