/**
  * Returns the style options for bar labels (and totals)
  */
 public function DataLabelStyle($dataset, $index, &$item)
 {
     $style = parent::DataLabelStyle($dataset, $index, $item);
     if (strpos($dataset, 'total') === 0) {
         // total settings can override label settings
         $opts = array('font' => 'bar_total_font', 'font_size' => 'bar_total_font_size', 'font_weight' => 'bar_total_font_weight', 'colour' => 'bar_total_colour', 'space' => 'bar_total_space', 'type' => 'bar_total_type', 'font_adjust' => 'bar_total_font_adjust', 'back_colour' => 'bar_total_back_colour', 'angle' => 'bar_total_angle', 'round' => 'bar_total_round', 'stroke' => 'bar_total_outline_colour', 'stroke_width' => 'bar_total_outline_thickness', 'fill' => 'bar_total_fill', 'tail_width' => 'bar_total_tail_width', 'tail_length' => 'bar_total_tail_length', 'shadow_opacity' => 'bar_total_shadow_opacity', 'pad_x' => 'bar_total_padding_x', 'pad_y' => 'bar_total_padding_y');
         // special case
         $opt = 'bar_total_padding';
         if (isset($this->settings[$opt]) && !empty($this->settings[$opt])) {
             $style['pad_x'] = $this->settings[$opt];
             $style['pad_y'] = $this->settings[$opt];
         }
         foreach ($opts as $key => $opt) {
             if (isset($this->settings[$opt]) && !empty($this->settings[$opt])) {
                 $style[$key] = $this->settings[$opt];
             }
         }
     }
     return $style;
 }