Label angle in drawLineChart
Hi, I'm new here
Im working with a linechart and I have rotate the name of the axis values, actually are no values, are names, and some names are very
long, maybe if is possible change the angle will be great.
here is the code and the var $nombres contains the names that I want to ratote 45 or 90 degree
Code:
include("pChart/class/pData.class");
include("pChart/class/pDraw.class");
include("pChart/class/pRadar.class");
include("pChart/class/pImage.class");
$MyData = new pData();
$MyData->addPoints($puntos, "serie1"); // dibuja la linea de la marca
$MyData->setSerieDescription("serie1", $nombre1);
$MyData->setSerieWeight("serie1", 1);
if ($tipo != "empresa") {
$MyData->addPoints($puntos2, "serie2");
$MyData->setSerieDescription("serie2", $nombre2);
$MyData->setSerieWeight("serie2", 1);
}
/* Define the absissa serie */
$MyData->addPoints($nombres, "Dimensiones"); <------------------------------ this is the array of names
$MyData->setAbscissa("Dimensiones");
/* Create the pChart object */
$myPicture = new pImage(850, 330, $MyData);
/* Write the chart title */
$myPicture->setFontProperties(array("FontName" => "../../fonts/calibri.ttf", "FontSize" => 9));
/* Draw the scale and the 1st chart */
$myPicture->setGraphArea(60, 50, 600, 250);
$myPicture->drawScale(array("DrawSubTicks" => TRUE));
$myPicture->setFontProperties(array("FontName" => "../../fonts/calibri.ttf", "FontSize" => 11));
$myPicture->drawLineChart(array("DisplayValues" => TRUE, "DisplayColor" => DISPLAY_AUTO));
/* Write the chart legend */
$myPicture->drawLegend(610, 205, array("Style" => LEGEND_NOBORDER, "Mode" => LEGEND_VERTICAL));
$name_1 = $_s->getId() . "_graficoLineas.png";
$myPicture->Stroke();
please help
ty