a0_options = $a0_options; $this->type = $this->a0_options->get( 'chart_age_type' ); } public function render() { $chartSetup = array( 'bindto' => '#auth0ChartAge', 'data' => array( 'type' => $this->type, 'selection' => array( 'enabled' => true ), ), 'color' => array( 'pattern' => array( '#F39C12', '#2ECC71', '#3498DB', '#9B59B6', '#34495E', '#F1C40F', '#E67E22', '#E74C3C', '#1ABC9C' ), ), 'axis' => array( 'x' => array( 'type' => 'category' ) ) ); if ( $this->type == 'bar' ) { $chartSetup['data']['x'] = 'x'; } ?>