'Couleur','type'=>'color'); return $options; } public static function toHtml($label,$data,$options){ $html = ''; if(!isset($options['properties'])) $options['properties'] = array(); try{ $data = $data['data']; $colors = View::colorSet(); shuffle($colors); if(!empty($options['properties']['color-1'])){ $background = $options['properties']['color-1']; }else{ $background = array_pop($colors); } $keys = array_keys($data); $values = array_values($data); if(count($data)==0) throw new Exception("
array( 'Légende 1' => 12, 'Légende 2' => 14, 'Légende 3' => 15 );"); if(isset($label)) $html.='