Changeset 1788


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

oups, pourcentages rectifiés

Location:
cpc/trunk/project
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/plot/templates/_groupes.php

    r1773 r1788  
    8888$x0 += 150;
    8989if (isset($Data3)) {
    90   $Test->drawFlatPieGraph($Data3,$DataDescr3,$x0,$y0,50,PIE_PERCENTAGE,0,0,150);
     90  $Test->drawFlatPieGraph($Data3,$DataDescr3,$x0,$y0,50,PIE_PERCENTAGE,0,0,150,150);
    9191  $Test->drawFilledCircle($x0,$y0+2,12,240,240,240);
    9292}
  • 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.