a0_options = $a0_options; $this->type = $this->a0_options->get( 'chart_idp_type' ); } public function render() { $chartSetup = array( 'bindto' => '#auth0ChartIdP', 'data' => array( 'type' => $this->type, 'selection' => array( 'enabled' => true ), ), 'axis' => array( 'x' => array( 'type' => 'category' ) ) ); if ( $this->type == 'bar' ) { $chartSetup['data']['x'] = 'x'; } ?>