Menu

JpGraph Error: Unknown color: 0.65

Help 2.02
2003-05-30
2003-06-02
  • michael meyer

    michael meyer - 2003-05-30

    JpGraph Error: Unknown color: 0.65

    diese FM bekomme ich in der Artikelstatistik.
    allerdings nicht sofort. zuerst ist alles in ordnung und das diagramm wird richtig dargestellt. wenn die anzahl der gekauften artikel zunimmt, kommt diese FM.

    die wohl verantwortliche zeile in der jpgraph_pie3d.php ist:
    -----
    $this->Pie3D($img,$this->data, $ca, $xc, $yc, $width, $this->angle, $thick, 0.65, $this->startangle, $this->edgecolor, $this->edgeweight);
    -----

    irgendwelche ideen?

    micha

     
    • Andreas Kansok

      Andreas Kansok - 2003-05-31

      Ja.:Reduzier' die Artikel, die in der grafik angezeigt werden.

      Fr mich verwende ich in admin/stats_item.php Zeile 37-64:

      rsort($value_array);

      if (count($value_array)>25) { $maxj=25;}
      else { $maxj=count($value_array); }

      echo "<ol>\n";
      for ($j=0; $j<=$maxj; $j++) {
        $help_value = array_shift($value_array);
        if ($help_value>0) {
          for ($k=0; $k<=$i; $k++) {
            if ($help_iv[$k] == $help_value)  {
              $avalue_array[$j] = $help_value;
              $alabel_array[$j] = $label_array[$k];
              $atarg[$j] = $targ[$k];
              echo "<li>$alabel_array[$j]\n";
              if ($l<16) {
                $svalue_array[$j] = $help_value;
                $slabel_array[$j] = $label2_array[$k];
                $starg[$j] = $targ[$k];
            #echo ":$targ[$k]:";
              }
              $help_iv[$k] = 0;
              $l++;
            }
          }
        }
      }
      echo "</ol>\n";

      Viele Artikel mit Werte als Text angezeigt werden, steht in $maxj. Die Anzahl fr das Diagramm werden mit ...if($l<16)... festgelegt. In diesem Falle also 15.

      Gru,
      Andreas.

       
    • Andreas Kansok

      Andreas Kansok - 2003-06-01

      Eventuell behebt auch eine neuere Version von JPgraph das Problem schon ...

       
    • michael meyer

      michael meyer - 2003-06-02

      ja, ein update auf jpgraph-1.12.2 hat bei mir wirklich geholfen.

      micha

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.