Plugin Directory

Changeset 217581


Ignore:
Timestamp:
03/14/2010 08:10:18 PM (16 years ago)
Author:
anukit
Message:

avoid too much space at the bottom of the chart

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cyclopress/branches/cp2/classes/cy_google_charts.php

    r217580 r217581  
    154154        // get nice tick ranges for the data
    155155        $range = $max - $min;
    156         $smart_min = ($min > $range) ? floor($min - ($range*0.1)) : 0; // avoid too much space at the bottom of the chart
     156        $smart_min = ($min > ($range*0.1)) ? floor($min - ($range*0.1)) : 0; // avoid too much space at the bottom of the chart
    157157        list($x_tick_range, $x_lower_bound, $x_upper_bound) = $this->get_chart_step_size(7, (count($x_data)-1), 1);
    158158        list($y_tick_range, $y_lower_bound, $y_upper_bound) = $this->get_chart_step_size(8, $max, $smart_min);
Note: See TracChangeset for help on using the changeset viewer.