Ignore:
Timestamp:
Feb 14, 2011, 7:12:55 PM (10 years ago)
Author:
goya
Message:

oups, pourcentages rectifiés

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/plugins/xsPChartPlugin/lib/pChart/pChart/pChart.class

    r1773 r1788  
    19821982
    19831983   /* This function draw a flat pie chart */
    1984    function drawFlatPieGraph(&$Data,&$DataDescription,$XPos,$YPos,$Radius=100,$DrawLabels=PIE_NOLABEL,$SpliceDistance=0,$Decimals = 0,$Angle=0)
     1984   function drawFlatPieGraph(&$Data,&$DataDescription,$XPos,$YPos,$Radius=100,$DrawLabels=PIE_NOLABEL,$SpliceDistance=0,$Decimals = 0,$Angle=0,$TotalPercents=100)
    19851985    {
    19861986     /* Validate the Data and DataDescription array */
     
    20092009     $SpliceDistanceRatio = $SpliceDistance;
    20102010     $SpliceRatio         = (360 - $SpliceDistanceRatio * count($iValues) ) / $PieSum;
    2011      $SplicePercent       = 100 / $PieSum;
     2011//   $SplicePercent       = 100 / $PieSum;
     2012     $SplicePercent       = $TotalPercents / $PieSum;
    20122013
    20132014     /* Calculate all polygons */
Note: See TracChangeset for help on using the changeset viewer.