diff --git a/charts.install b/charts.install
index 36fab2b617a45e9144312686bd64fbba3f7007ea..ed6529d4cd1e0372be0747de8297566b8d644f45 100644
--- a/charts.install
+++ b/charts.install
@@ -8,8 +8,7 @@
  * Implements hook_requirements().
  */
 function charts_requirements($phase) {
-  $requirements = array();
+  $requirements = [];
 
   return $requirements;
 }
-
diff --git a/charts.permissions.yml b/charts.permissions.yml
index 1997d7efae4bcb9913512ba830377b65964eeed8..cc35295f3a0265e4bc61d25fd1ba7cf6ea617b24 100644
--- a/charts.permissions.yml
+++ b/charts.permissions.yml
@@ -3,4 +3,3 @@ access all charts:
   title: 'Administer Charts'
   description: 'This permission needs to be fleshed out.'
   restrict access: TRUE
-
diff --git a/modules/charts_api_example/src/Controller/ChartsApiExample.php b/modules/charts_api_example/src/Controller/ChartsApiExample.php
index bae392a1e053f4a9d9cdc22eb5395d54be28484c..b3e896d911e79f00de3c0259268ae4843a2b706a 100644
--- a/modules/charts_api_example/src/Controller/ChartsApiExample.php
+++ b/modules/charts_api_example/src/Controller/ChartsApiExample.php
@@ -20,11 +20,11 @@ class ChartsApiExample extends ControllerBase implements ContainerInjectionInter
     $library = $this->chartSettings['library'];
     $options = [];
     $options['type'] = $this->chartSettings['type'];
-    $options['title'] = t('Chart title');
-    $options['yaxis_title'] = t('Y-Axis');
+    $options['title'] = $this->t('Chart title');
+    $options['yaxis_title'] = $this->t('Y-Axis');
     $options['yaxis_min'] = '';
     $options['yaxis_max'] = '';
-    $options['xaxis_title'] = t('X-Axis');
+    $options['xaxis_title'] = $this->t('X-Axis');
     //sample data format
     $categories = ["Category 1", "Category 2", "Category 3", "Category 4"];
     $seriesData = [
diff --git a/src/Charts/ModuleSelector.php b/src/Charts/ModuleSelector.php
index f97e400b136036e45da3489238d05e062a7d6b37..ee99af5893de2a60c66da792cad56aedbb534f91 100644
--- a/src/Charts/ModuleSelector.php
+++ b/src/Charts/ModuleSelector.php
@@ -32,7 +32,6 @@ class ModuleSelector {
   private function moduleExists($moduleName, &$variables) {
     $moduleExist = \Drupal::moduleHandler()->moduleExists($moduleName);
     if ('charts_' . $moduleExist) {
-      $className = ucfirst($moduleName);
       $moduleChartsRenderer = 'Drupal\charts_' . $moduleName . '\Charts\\' . ucfirst($moduleName) . 'ChartsRender';
       $chartingModule = new $moduleChartsRenderer();
       $chartingModule->charts_render_charts($this->options, $this->categories, $this->seriesData, $this->attachmentDisplayOptions, $variables, $this->chartId);
diff --git a/src/Form/ChartsConfigForm.php b/src/Form/ChartsConfigForm.php
index 33bf6d0b27eb4e34eb9977e926698277c750b366..3a9c0a96516109075f3450e74c9a09f966c0b065 100644
--- a/src/Form/ChartsConfigForm.php
+++ b/src/Form/ChartsConfigForm.php
@@ -142,7 +142,7 @@ class ChartsConfigForm extends ConfigFormBase {
       }
     }
     if (count($library_options) == 0) {
-      drupal_set_message(t('There are no enabled charting libraries. Please enable a Charts sub-module.'));
+      drupal_set_message($this->t('There are no enabled charting libraries. Please enable a Charts sub-module.'));
     }
     $form['library'] = [
       '#title' => $this->t('Charting library'),
diff --git a/src/Plugin/views/display/ChartsPluginDisplayChart.php b/src/Plugin/views/display/ChartsPluginDisplayChart.php
index adbfde8b13dc6da21c9aafe36ffcf748f903713a..1eb65b3cc030d948a097395b3de335c194404ed0 100644
--- a/src/Plugin/views/display/ChartsPluginDisplayChart.php
+++ b/src/Plugin/views/display/ChartsPluginDisplayChart.php
@@ -80,11 +80,8 @@ class ChartsPluginDisplayChart extends Attachment {
       'value' => $this->getOption('inherit_yaxis') ? t('Use primary Y-axis') : t('Create secondary axis'),
     ];
 
-    $options['attachment_position'] = ['disabled' => TRUE];
-
-    $options['inherit_pager'] = ['disabled' => TRUE];
-
-    $options['render_pager'] = ['disabled' => TRUE];
+    unset($options['attachment_position']);
+    unset($options['inherit_pager']);
 
   }