<?php ); ?>
na postać $tablica[$i]
Chodzi mi o dynamiczne umiszczanie większej liczby danych z np bazy danych, a wtym przypadku nie umiem tego zrobić w tej postaci array
<?php ); ?>
<?php $Miesiac[]; $Netto[]; ?>
<? include ( \"phplot.php\"); $graph = new PHPlot; $graph->SetDataType( \"linear-linear\"); // Specify some data ); $graph->SetDataValues($data1); //Specify plotting area details $graph->SetImageArea(600,400); //$graph->SetPlotType(\"lines\"); $graph->SetTitleFontSize(\"5\"); //$d = 'znak'; $graph->SetTitle(\"Statystyka Sprzedaży\"); $graph->SetPlotAreaWorld(2000,0,2035,2000); $graph->SetPlotBgColor(\"red\"); $graph->SetPlotBorderType(\"left\"); $graph->SetBackgroundColor(\"white\"); //Define the X axis $graph->SetXLabel(\"Year\"); $graph->SetHorizTickIncrement(\"5\"); //Define the Y axis //$graph->SetVertTickIncrement(\"500\"); $graph->SetPrecisionY(\"0\"); $graph->SetLightGridColor(\"blue\"); $graph->DrawGraph(); $graph->DrawGraph(); ?>
<?php ); ?>
<?php SetDataValues ?>