Few questions about radar charts
Hi all, I discovered today this amazing library and it's perfect for a project I'm working on. I'm using a radar chart with 5 labels and I managed to create the graph in few minutes but now I can't find certain features in the documentation. I have 3 questions:
1 - I would like to set a certain range(max-min) for each label since I am comparing values in a 1-10 scale with number up to 100 and the chart get deformed if the range is always given from the highest value.
2 - Is there a way to set the polygon color? I tried differen configuration but couldn't find one to set it
3 - Is there a way not to show each notch value? The only text I want on my chart area are labels
Thanks
This is an example of my code if needed
Code:
<?php
/* pChart library inclusions */
include("extra_lib/pChart/class/pData.class");
include("extra_lib/pChart/class/pDraw.class");
include("extra_lib/pChart/class/pRadar.class");
include("extra_lib/pChart/class/pImage.class");
/* Create and populate the pData object */
$MyData = new pData();
$MyData->addPoints(array(5,130,5,7,29),"ScoreA");
$MyData->setSerieDescription("ScoreA","Application A");
/* Define the absissa serie */
$MyData->addPoints(array("LABEL1","LABEL2","LABEL3","LABEL4","LABEL5"),"Labels");
$MyData->setAbscissa("Labels");
/* Create the pChart object */
$width=300;
$height=200;
$myPicture = new pImage($width,$height,$MyData);
/* Set the default font properties */
$myPicture->setFontProperties(array("FontName"=>"extra_lib/pChart/fonts/verdana.ttf","FontSize"=>6,"R"=>80,"G"=>80,"B"=>80));
/* Create the pRadar object */
$SplitChart = new pRadar();
/* Draw a radar chart */
$myPicture->setGraphArea(0,0,$width,$height);
$Options['LabelPos'] = RADAR_LABELS_HORIZONTAL;
$Options['Layout'] = RADAR_LAYOUT_STAR;
$Options['PointRadius']=0;
$Options['AxisR']=0;
$Options['AxisG']=122;
$Options['AxisB']=9;
$Options['LabelPadding']=1;
$Options['AxisRotation'] = -17;
$Options['DrawPoly']= TRUE;
$Options['PolyAlpha'] = 50;
$Options['FontSize'] = 6;
$SplitChart->drawRadar($myPicture,$MyData,$Options);
/* Render the picture (choose the best way) */
$myPicture->autoOutput("pictures/example.radar.png");
?>