View unanswered posts | View active topics It is currently Thu Mar 28, 2024 1:33 pm



Reply to topic  [ 1 post ] 
Function does not work:setAxisPosition(3,AXIS_POSITION_RIGHT 
Author Message
New pChart user
New pChart user

Joined: Sat May 18, 2013 12:52 pm
Posts: 3
Post Function does not work:setAxisPosition(3,AXIS_POSITION_RIGHT
Function does not work:setAxisPosition(3,AXIS_POSITION_RIGHT);.
Added a line as in the example:
Code:
$myData->setAxisPosition(3,AXIS_POSITION_RIGHT);
$myData->setAxisName(3,"numbers");

Ordinate(y) axis is still displayed on the left.

Tell please me what's wrong?


Code:
$myData->setAbscissa("g");
$myData->setSerieWeight("ra_ta");
$myData->setSerieTicks("numbers");
$myPicture = new pImage(1000,300,$myData);
$Settings = array("R"=>170, "G"=>183, "B"=>87, "Dash"=>1, "DashR"=>190, "DashG"=>203, "DashB"=>107);
$myPicture->drawFilledRectangle(0,0,1000,300,$Settings);
$Settings = array("StartR"=>219, "StartG"=>231, "StartB"=>139, "EndR"=>1, "EndG"=>138, "EndB"=>68, "Alpha"=>50);
$myPicture->drawGradientArea(0,0,1000,300,DIRECTION_VERTICAL,$Settings);
$myPicture->drawGradientArea(0,0,1000,20,DIRECTION_VERTICAL,array("StartR"=>0,"StartG"=>0,"StartB"=>0,"EndR"=>50,"EndG"=>50,"EndB"=>50,"Alpha"=>80));
$myPicture->drawRectangle(0,0,999,299,array("R"=>0,"G"=>0,"B"=>0));
$myPicture->setFontProperties(array("FontName"=>"../pChart/fonts/calibri.ttf","FontSize"=>11));
$myPicture->setGraphArea(60,60,950,270);
$myPicture->drawFilledRectangle(60,60,950,270,array("R"=>255,"G"=>255,"B"=>255,"Surrounding"=>-200,"Alpha"=>10));
$myPicture->drawScale(array("DrawSubTicks"=>TRUE));
$myPicture->setShadow(TRUE,array("X"=>1,"Y"=>1,"R"=>0,"G"=>0,"B"=>0,"Alpha"=>10));
$myPicture->setFontProperties(array("FontName"=>"../pChart/fonts/calibri.ttf","FontSize"=>10));
$myPicture->drawLineChart(array("DisplayValues"=>TRUE,"DisplayColor"=>DISPLAY_MANUAL));
$myPicture->drawPlotChart(array("PlotBorder"=>TRUE,"BorderSize"=>0,"Surrounding"=>-10,"BorderAlpha"=>0));
$myPicture->setShadow(FALSE);
$myData->setAxisPosition(3,AXIS_POSITION_RIGHT);
$myData->setAxisName(3,"numbers");
$myPicture->setFontProperties(array("FontName"=>"../pChart/fonts/calibri.ttf","FontSize"=>8,"R"=>255,"G"=>255,"B"=>255));
$myPicture->drawText(10,16,$teama,array("FontSize"=>11,"Align"=>TEXT_ALIGN_BOTTOMLEFT));
$myPicture->autoOutput("pictures/$j.png");
$myPicture->Render("$j.png");
$myPicture->stroke();


Mon Jul 08, 2013 1:08 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron