WordPress at Your Fingertips
function is not described

WC_Report_Customers::get_chart_legend() public WC 1.0

Get the legend for the main chart sidebar.

{} It's a method of the class: WC_Report_Customers{}

No Hooks.

Return

Array.

Usage

$WC_Report_Customers = new WC_Report_Customers();
$WC_Report_Customers->get_chart_legend();

Code of WC_Report_Customers::get_chart_legend() WC 5.8.0

public function get_chart_legend() {
	$legend = array();

	$legend[] = array(
		/* translators: %s: signups amount */
		'title'            => sprintf( __( '%s signups in this period', 'woocommerce' ), '<strong>' . count( $this->customers ) . '</strong>' ),
		'color'            => $this->chart_colours['signups'],
		'highlight_series' => 2,
	);

	return $legend;
}