Index: open_flash_chart_api.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/open_flash_chart_api/open_flash_chart_api.module,v retrieving revision 1.13 diff -u -r1.13 open_flash_chart_api.module --- open_flash_chart_api.module 19 Jun 2008 18:59:32 -0000 1.13 +++ open_flash_chart_api.module 19 Jun 2008 19:03:52 -0000 @@ -805,11 +805,7 @@ $this->lines[$type] = $description; } - // - // Patch by, Jeremy Miller (14th Nov, 2007) - // - - /** + /** * Draw a pie chart. * * @param alpha an int argument. @@ -818,25 +814,11 @@ * The hex colour value of the outline. * @param label_colour a string argument. * The hex colour value of the label. - * @param gradient a boolean argument. - * Use a gradient true or false. - * @param border_size an int argument. - * Size of the border in pixels. + * @param fontsize an integer argument. + * Font Size in Pixels. */ - function pie( $alpha, $line_colour, $label_colour, $gradient = true, $border_size = false ) - { - $this->pie = $alpha.','.$line_colour.','.$label_colour; - if (!$gradient) { - $this->pie .= ','.!$gradient; - } - if ($border_size) - { - if ($gradient === false) - { - $this->pie .= ','; - } - $this->pie .= ','.$border_size; - } + function pie($alpha, $line_colour, $label_colour = '#000000', $fontsize = 14){ + $this->pie = $alpha .','. $line_colour .',{font-size: '. $fontsize . 'px; color: '. $label_colour .'}'; } /**